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
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
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
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
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
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
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
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