logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Klaus Mueller <k.muel...@intershop.de>
Subject Log one thread only
Date Fri, 18 Jan 2002 14:21:48 GMT
Hi,

I use the log4j package with a multithreaded application server. I need to
log the processing of one thread only. Each thread runs the same classes. I
can not change the categories of this one interesting thread. I can only
specify the name of the thread.

Question:
Does anyone know how to limit the logging to one thread only?

Example:

I create 3 calculator threads:

----
t1|t2|t3 = new CalcThread();
Logger.setLogThread(t2);

t1|t2|t3.start();
----

I need the log output of thread t2 only.

Thanks
KLaus

--
To unsubscribe, e-mail:   <mailto:log4j-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:log4j-user-help@jakarta.apache.org>


Mime
View raw message