Component specific logging

2006-02-22 Thread Hitesh Raghav
Hi All, In my application 3-4 third party components are being used. For logging configuration, all the components are refering to "log4j.properties". It's placed in "properties" folder of application server. Therefore, all the coponents are logging into the same log file. I've to generate the

Generating Component specific logs without modifying code

2006-02-22 Thread Extra Extra
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 t

Re: reusability and applet dilemma

2006-02-22 Thread Jeff Drew
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(); root.setLeve

About stdou, debug

2006-02-22 Thread Luis Ramos
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 _ Expr

RE: Use different log files inside one program

2006-02-22 Thread Bender Heri
If you use static thread names (I thought first of thread ID's which are runtime dependent) you can of course define everything in config file. But you have to define an appender and the whole logger collection for each thread name. Said "logger collection": I assume you dont want to loose the m

Re: Use different log files inside one program

2006-02-22 Thread James Stauffer
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 cr

RE: Use different log files inside one program

2006-02-22 Thread Bender Heri
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 disting

Re: Use different log files inside one program

2006-02-22 Thread James Stauffer
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 mail.com> writes: > > > > > hi there, > > > > i have a ja