|
||||||||
|
This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira |
||||||||
_______________________________________________ logback-dev mailing list [email protected] http://mailman.qos.ch/mailman/listinfo/logback-dev

ThisadeeP, how can this be fixed in logback?
We could generate and exception, get he stacktrace, and find the classloader of the calling class, hoping that would have logback.xml in it. But that class might be a utility class (hibernate, spring), not an application class, so might not work.
Maybe you just need to manually init logback from code.
I do this in a ServletContextListener which is registered in web.xml.
This is my version, but you could put any logic in there, like finding the full path of logback.xml...