Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[jetty-users] hide slf4j classes from web-apps

I use slf4j with log4j for Jetty (8.1.8) server logs. I follow and add
slf4j-api-1.6.6.jar, slf4j-log4j12-1.6.6.jar and log4j-1.2.17.jar in
lib/ext. It works fine.

I'd like to allow web-apps to have different slf4j bindings, so I've added
the following to hide slf4j and log4j classes from web-apps:
<Configure class="org.eclipse.jetty.webapp.WebAppContext">
  <Call name="addServerClass">
    <Arg type="String">org.slf4j.</Arg>
  <Call name="addServerClass">
    <Arg type="String">org.apache.log4j.</Arg>

But I still see warning in stderr:
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in
SLF4J: Found binding in

What else should I do?

View this message in context:
Sent from the Jetty User mailing list archive at

Back to the top