[logback-user] How to load logback.xml from ear?
cinhtau
cinhtau at gmail.com
Tue Apr 17 09:23:09 CEST 2012
sdoca wrote:
>
> I have an ear file deployed to Glassfish (v.3.1.1) and cannot get the
> logback.xml to be loaded. I have bundled it in the ear in the META-INF
> directory. Where should it be located?
>
See http://hwellmann.blogspot.de/2010/05/glassfish-logging-with-slf4j.html
for global configuration.
Using Maven for each EAR you can deploy the logback.xml within. It has to be
under ~/{project}/src/main/resources. I use JoranConfigurator to
load/configure it for each EAR.
--
View this message in context: http://old.nabble.com/How-to-load-logback.xml-from-ear--tp33696845p33699321.html
Sent from the Logback User mailing list archive at Nabble.com.
More information about the Logback-user
mailing list