On Wed, 29 Jun 2005, Bender Heri wrote: > If you dont you pay special attention (i.e. using own > RepositorySelector, using MDC, etc.), then all the log4j stuff is really > global in one and them same JVM.
I think that would probably be okay. No? > You need a way how you can distinguish your different apps in the same JVM. > > If all apps running in the same thread, it will be difficult. Every log > statement must be surrounded by a calls to set and remove MDC > information. You could centralize this, but then you loose source code > informations (line number). Further you have to write filters (attacht > to a particular appender) which analyze this MDC informations in order > to block it or to write it to the file. I not encourage this way. The apps are running in different processes. Therefore, it's impossible that they are running in the same thread, because threads are associated with a single process. Did you mean the same JVM? > Better way: all apps run within its own thread context. They're already running as their own processes. The MDC stuff was way over my head. Dave --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
