Hello,
I am trying to convert our web applications which are packaged within EARs to
use logback instead of log4j. I would like to separate the log messages for
each application into their own log file. I'm having an issue with shared
EJBs within each EAR not logging to the same log file as the web-apps. The
shared EJBs all use static logger references.
My artifacts are packaged as follows:
EAR1.ear
EJB_shared.jar
Web_app_1.war
EAR2.ear
EJB_shared.jar
Web_app_2.war
Using the ContextJNDISelector and SiftingAppenders I am able to separate the
log messages for the web apps, but the EJB log messages are not being logged.
I'm thinking this is due to the EJB not have the same context (or an context?)
as the web apps so they are not getting picked up by the SiftingAppender with
my logback config xml?
Is there a standard way to configure logback so that the shared EJBs are
included? Do I need to move the logback config xml to the EAR? Is this a
issue with how we are packaging our EARs?
I can provide my logback config and other config if needed.
Thanks,
Chris
_______________________________________________
Logback-user mailing list
[email protected]
http://mailman.qos.ch/mailman/listinfo/logback-user