We use slf4j and logback for logging in our java ee web application.
Recently in order to move these libraries to a common location in the
glassfish app server (to glassfish\lib directory specifically) we made a
couple of configuration changes. We made changes in the web.xml file to add
JNDI entries and renamed the logback.xml to logback-<context-name>.xml as
specified in here <http://logback.qos.ch/manual/loggingSeparation.html>.
The logback-<context-name>.xml is placed in WEB-INF\classes directory.

After this change, logging for hibernate and http-client libraries is
defaulting to debug mode and hence there is lot of logging being done. The
root logger has INFO log level and there are no specific loggers defined
for hibernate & http-client libraries.

If I revert this change i.e. remove the jndi entry in web.xml and rename
the configuration file to logback.xml, only INFO logs are logged as
expected.

Any suggestions on what could be the issue?

Thanks,
Amit.
_______________________________________________
Logback-user mailing list
[email protected]
http://mailman.qos.ch/mailman/listinfo/logback-user

Reply via email to