Commit d7dd8224 by haozi

解决应用接入问题

parent 13c1a0c1
...@@ -55,7 +55,23 @@ ...@@ -55,7 +55,23 @@
|logLevel|等级|无|非必填| |logLevel|等级|无|非必填|
### 版本 ### 版本
+ 0.0.1${ver\_type} init + 1.0.2${ver\_type} init
+ 1.0.0${ver\_type} last
注意:ver\_type后缀-DEV-SNAPSHOT、-SNAPSHOT、.RELEASE
\ No newline at end of file 注意:ver\_type后缀-DEV-SNAPSHOT、-SNAPSHOT、.RELEASE
### 问题
1. 日志输出tid是`TID:N/A`原因
+ 确定应用依赖`secoo-log`模块
+ 确定启动时
+ 尝试云平台【agent配置管理】页更新agent代码和部署最新代码
2. 包冲突
```
Caused by: java.lang.IllegalStateException: Detected both log4j-over-slf4j.jar AND bound slf4j-log4j12.jar on the class path, preempting StackOverflowError. See also http://www.slf4j.org/codes.html#log4jDelegationLoop for more details.
at org.slf4j.impl.Log4jLoggerFactory.<clinit>(Log4jLoggerFactory.java:54)
... 22 more
```
排除`slf4j-log4j12`(建议idea安装`Maven Helper`插件)
原因官网[SLF4J warning or error messages and their meanings](https://www.slf4j.org/codes.html#log4jDelegationLoop),中文[log4j-over-slf4j与slf4j-log4j12共存stack overflow异常分析](https://www.cnblogs.com/pekkle/p/6813458.html)
\ No newline at end of file
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
<groupId>com.secoo.mall</groupId> <groupId>com.secoo.mall</groupId>
<artifactId>secoo-log-parent</artifactId> <artifactId>secoo-log-parent</artifactId>
<packaging>pom</packaging> <packaging>pom</packaging>
<version>1.0.0.RELEASE</version> <version>1.0.2.RELEASE</version>
<modules> <modules>
<module>secoo-log-starter</module> <module>secoo-log-starter</module>
<module>secoo-log</module> <module>secoo-log</module>
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
<properties> <properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<logback.version>1.2.3</logback.version> <logback.version>1.2.3</logback.version>
<slf4j.version>1.7.21</slf4j.version> <slf4j.version>1.7.25</slf4j.version>
<janino.version>3.0.6</janino.version> <janino.version>3.0.6</janino.version>
</properties> </properties>
...@@ -25,12 +25,6 @@ ...@@ -25,12 +25,6 @@
<groupId>org.slf4j</groupId> <groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId> <artifactId>slf4j-api</artifactId>
<version>${slf4j.version}</version> <version>${slf4j.version}</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-core</artifactId>
<version>${logback.version}</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>ch.qos.logback</groupId> <groupId>ch.qos.logback</groupId>
...@@ -43,6 +37,11 @@ ...@@ -43,6 +37,11 @@
<artifactId>jcl-over-slf4j</artifactId> <artifactId>jcl-over-slf4j</artifactId>
<version>${slf4j.version}</version> <version>${slf4j.version}</version>
</dependency> </dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>log4j-over-slf4j</artifactId>
<version>${slf4j.version}</version>
</dependency>
<!-- 支持logback condition表达式 --> <!-- 支持logback condition表达式 -->
<dependency> <dependency>
<groupId>org.codehaus.janino</groupId> <groupId>org.codehaus.janino</groupId>
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
<parent> <parent>
<artifactId>secoo-log-parent</artifactId> <artifactId>secoo-log-parent</artifactId>
<groupId>com.secoo.mall</groupId> <groupId>com.secoo.mall</groupId>
<version>1.0.0.RELEASE</version> <version>1.0.2.RELEASE</version>
</parent> </parent>
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
...@@ -23,10 +23,6 @@ ...@@ -23,10 +23,6 @@
</dependency> </dependency>
<dependency> <dependency>
<groupId>ch.qos.logback</groupId> <groupId>ch.qos.logback</groupId>
<artifactId>logback-core</artifactId>
</dependency>
<dependency>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-classic</artifactId> <artifactId>logback-classic</artifactId>
</dependency> </dependency>
<!-- 桥接slf4j --> <!-- 桥接slf4j -->
...@@ -34,6 +30,10 @@ ...@@ -34,6 +30,10 @@
<groupId>org.slf4j</groupId> <groupId>org.slf4j</groupId>
<artifactId>jcl-over-slf4j</artifactId> <artifactId>jcl-over-slf4j</artifactId>
</dependency> </dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>log4j-over-slf4j</artifactId>
</dependency>
<!-- 打印skywalking tid插件--> <!-- 打印skywalking tid插件-->
<dependency> <dependency>
<groupId>org.apache.skywalking</groupId> <groupId>org.apache.skywalking</groupId>
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
<parent> <parent>
<artifactId>secoo-log-parent</artifactId> <artifactId>secoo-log-parent</artifactId>
<groupId>com.secoo.mall</groupId> <groupId>com.secoo.mall</groupId>
<version>1.0.0.RELEASE</version> <version>1.0.2.RELEASE</version>
</parent> </parent>
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
...@@ -19,10 +19,6 @@ ...@@ -19,10 +19,6 @@
</dependency> </dependency>
<dependency> <dependency>
<groupId>ch.qos.logback</groupId> <groupId>ch.qos.logback</groupId>
<artifactId>logback-core</artifactId>
</dependency>
<dependency>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-classic</artifactId> <artifactId>logback-classic</artifactId>
</dependency> </dependency>
<!-- 桥接slf4j --> <!-- 桥接slf4j -->
...@@ -30,6 +26,10 @@ ...@@ -30,6 +26,10 @@
<groupId>org.slf4j</groupId> <groupId>org.slf4j</groupId>
<artifactId>jcl-over-slf4j</artifactId> <artifactId>jcl-over-slf4j</artifactId>
</dependency> </dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>log4j-over-slf4j</artifactId>
</dependency>
<!-- 打印skywalking tid插件--> <!-- 打印skywalking tid插件-->
<dependency> <dependency>
<groupId>org.apache.skywalking</groupId> <groupId>org.apache.skywalking</groupId>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment