You can specify %t in the appenders format to get the thread name. Look at http://jakarta.apache.org/log4j/docs/api/org/apache/log4j/PatternLayout.html
for more details. --jason marc fleury wrote: >|>PS: is there a threadTrace() thingy where it creates a new file per thread >|>that would come it and the messages are linked to a given thread going >|>through? is that a custom logger? >|> >|You lost me here. What are you trying to track? > >A thread. > >A thread is coming in and collecting thread information as it goes. > >If 2 threads go through the log4j logger and "trace" do the message get >"mixed"??? in that case it is VERY hard to debug a running system as you >don't know what thread is talking. Think of that logger as a PROBE for a >given thread going through. It goes through on only the messages originated >by that thread get logged in a file. > >Ex: you are running a system, something is wrong, if you look at the logs >you see 254 threads going through and the messages make no sense. You turn >on the "logTrace()" and ONE thread that is going through gets redirected to >a file (or a finite number whatever). Each file is just the talk from ONE >thread. Useful for debugging the running system. > >Yes? > >marcf >| >|--jason >| >| >| >|_______________________________________________ >|Jboss-development mailing list >|[EMAIL PROTECTED] >|https://lists.sourceforge.net/lists/listinfo/jboss-development > > >_______________________________________________ >Jboss-development mailing list >[EMAIL PROTECTED] >https://lists.sourceforge.net/lists/listinfo/jboss-development > _______________________________________________ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
