Would the following work? It would make a separate logger trunk per
thread name.
Logger logger = Logger.getLogger(Thread.currentThread().getName() +
. + getClass().getName());
On 2/21/06, Kev. [EMAIL PROTECTED] wrote:
Winston Huang weiqingh at mail.com writes:
hi there,
i have a java
No, this would not work since you dont know the thread id in configuration file
where you name the logger.
You must implement your own repository selector which maintains a repository
for each thread (or other distinguishing features as you like). The following
is a sample which has two
Given what you said it appears that either the config file or the code
needs to give a filename for each thread. If you can do it in code
then you may be able to do it in the config file. The config file
would of course only work if the thread names were basically static.
Another option is to
Hi..., I try to send the stdout and debug out to the log file of my
aplication, but the stdout and the debug out ever print in screen, how I can
send the stdout and the debug out to the log file???...
Thanks...
Xrampante
_
Thanks for the replies. I'm not understanding Ceki's suggestion so I wrote
the attached applet to illustrate my misunderstanding.
here's the code:
public class AppletLogTest extends javax.swing.JApplet {
public void init() {
Logger root = Logger.getRootLogger();
HI
My problem is that i want to generate component specific logfiles.
let me explain in detail.
i have 3 third party(i dont have access to source code only have
.class files(jars)) components in my application say
1)com.abc.def
2)com.ghi.jkl
3)com.mno.pqr
right now