Re: org.slf4j.impl.Log4jLoggerAdapter cannot be cast to ch.qos.logback.classic.Logger

Posted by Mavlarn on
URL: http://ngrinder.373.s1.nabble.com/org-slf4j-impl-Log4jLoggerAdapter-cannot-be-cast-to-ch-qos-logback-classic-Logger-tp1720p1725.html

这应该是你自己的代码里面使用的别的log包。

我们整个项目都用的slf4j,所有依赖里面如果使用的log4j或者commons-logging之类的,或者其他版本的slf4j,都尽量排除掉。

 

 

 

-----Original Message-----
From: "efuton [via ngrinder]"<[hidden email]>
To: "Mavlarn"<[hidden email]>;
Cc:
Sent: 2015-01-21 (星期三) 16:48:21
Subject: Re: org.slf4j.impl.Log4jLoggerAdapter cannot be cast to ch.qos.logback.classic.Logger
 

pom添加如下即可
<exclusions> 
<exclusion>
 <groupId>org.slf4j</groupId> 
 <artifactId>slf4j-log4j12</artifactId>
 </exclusion> 
 </exclusions>


If you reply to this email, your message will be added to the discussion below:
http://ngrinder.642.n7.nabble.com/org-slf4j-impl-Log4jLoggerAdapter-cannot-be-cast-to-ch-qos-logback-classic-Logger-tp1720p1721.html
To start a new topic under ngrinder-user-cn, email [hidden email]
To unsubscribe from ngrinder-user-cn, click here.
NAML