> Since they use commons logging, I´ve had to call > LogManager.getLogManager().readConfiguration(InputStream is); in order to make the logging engine > load my configurations and let me log where I wish. > But that affects in a global way. If I have only one context running, > everything is fine, but with many, the last context that called > readConfiguration redefines all the precedents. > I looked to the sources of the jdk and found it relies on the System > Classloader... > > I am a little bit trapped here, as I do not know how to redirect the log > of the instances of hibernate and struts to the log of my context of tomcat. > > I appreciate very much any suggestions. Try x4juli at http://www.x4juli.org You can configure per ThreadContextClassLoader (so per webapp). Use one config file per webapp as shown in the examples for tomcat in the distribution.
Second possibility is to use Tomcat JULI (x4juli is based on Tomcat JULI) it supports TCCL, too. I am interested in feedback what you test and your final decision and solution. Regards Boris Regards Boris --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]