New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
can not set logger by myself #566
Comments
The logger-class parameter is used when javamelody is logging, and not in this case when registering listeners for messages logged by the application. So the logger-class parameter can not help you in this case. |
I made a simple test to reproduce this issue jmtest.zip
|
I have reproduced the issue. Anyway, the problem is that your webapp includes old versions of log4j-over-slf4j and of slf4j-api. Upgrade them to the latest versions (1.7.21) and your issue is gone. |
Version: 1.59.0
JDK:1.7.0_70
Tomcat:7.0.x
Background: There is a log4j-1.x.jar in ${CATALINA_BASE}/lib which means tomcat log uses log4j to write log and my context can find log4j classes. My own application uses slf4j + logback.
When I put myapp.war into tomcat,an exception is thrown out
I found that there is a param called
logger-class
can be set, I've done it and failed.I added this to web.xml, got the same exception
I found codes in
FilterContext.java
Is there any way to set logger by myself or I missed something ?
Thanks for reply.
The text was updated successfully, but these errors were encountered: