[logback-user] Fwd: ContextSelector JNDI (in WildFly)

Janario Oliveira janarioliver at gmail.com
Mon Apr 13 16:21:11 CEST 2015

Hi guys,

I'm looking for a full replacement to Logback in WildFly. I already added
modules remove another ones and disabled log manager.
Also I defined a default logback.xml and set it by property

I was looking to work with JNDI context selector but as I see Loggers
created from modules are attached to default LoggerContext and still after
reuse from application classes

My application logs works with the right contextSelector and
consequentially the right appenders.
But when I call some logger from modules, for example a query
(SqlStatementLogger), its loggers are attached with default LoggerContext
what selects the default appenders not application ones

Is there a way to Logger dynamic select another context after it has been
Has anyone made this work (as a full replacement)?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.qos.ch/pipermail/logback-user/attachments/20150413/fd805a9f/attachment.html>

More information about the Logback-user mailing list