Lars Ködderitzsch wrote: > Hello Ceki, > > This sounds like a vialable way, that somehow matches my current log4j > based hack. Is this appender already available? > I had a quick look at the 0.9.11 sources and didn't find any.
No it is not available. >> Additional detail would be nice. For example, how are you managing thread >> local >> values in the web-app and in ejbs? > For web-apps I currently use a servlet filter, which sets a thread > special thread local variable to the value of a special context param in > the webapp. > This matches the MDC approach using servlet filters. > > For ejb's this proves a bit more difficult (at least EJB2, havent checke > EJB3 so far) since there is no standardized support for custom EJB > interceptors. > Currently I am using aspectj to weave an aspect around the ejb > implementation class - which sets the thread local. > > A third use case are workmanager and timer threads (Websphere 6.1), > where the aspect aproach also works - here the context setting aspect is > applied the work item implementation classes (basically a Runnable > implementation). I see. Thank you for this explanation. -- Ceki Gülcü Logback: The reliable, generic, fast and flexible logging framework for Java. http://logback.qos.ch _______________________________________________ Logback-user mailing list [email protected] http://qos.ch/mailman/listinfo/logback-user
