[jboss-dev-forums] [JBoss AS 7 Development] - Re: Logging with slf4j in 7.1.0.Final

David Lloyd do-not-reply at jboss.com
Thu Feb 23 11:45:59 EST 2012


David Lloyd [https://community.jboss.org/people/dmlloyd] created the discussion

"Re: Logging with slf4j in 7.1.0.Final"

To view the discussion, visit: https://community.jboss.org/message/719198#719198

--------------------------------------------------------------
Let me answer the main question first before I address the finer points: +yes+ you can provide your own logging if you want.

I do want to point out that you are incorrect about a couple points.  First, the JBoss LogManager isn't so much +based+ on JUL as it completely replaces it.  As it does replace log4j and provide implementations for slf4j and so on.  It *does* in fact support MDC, via the slf4j or log4j or jboss-logging APIs.  And it does in fact allow the usage of log4j appenders to be configured.  The basic idea is that no matter which log API you use or how you use it, all the logs are handled consistently.  This is why we replace JUL's log manager implementation - it's the only way to consistently and correctly merge JUL logs with log4j-style logs.

That said it does *not* presently have complete support for per-deployment logging configurations, though that is forthcoming in a (not too distant) future release.

Anyway, assuming you still want to go ahead with using your own logging API and implementation, you may also have to exclude "org.jboss.logging" in case you've got a secondary JAR linking against that.
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/719198#719198]

Start a new discussion in JBoss AS 7 Development at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2225]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-dev-forums/attachments/20120223/23ec0d13/attachment.html 


More information about the jboss-dev-forums mailing list