Hi All,
Is there any way we can replace a file attached to a particular appender
using java code? I am using DailyRollingFileAppender for my purpose and
want to log to separate files depending upon certain configurations made
in the database. Can we dynamically change the files an appender is
w
Thanks Micheal, I do get better resolution timing now J
I am also trying to time how long it takes a particular message to travel from
identical machines A to B. That is propagation time = receive time – sent time.
I cannot use System.nanoTime(); in this case and the resolution of
System.curre
OK, in the following I denote foo.bar.XY as AppA and com.create.CR as
AppB and the test.bulk.ZY as UtilityC.
Possible solutions:
1. If the UtilityC is instantiated separatly by AppA and AppB (two
instances) you are perfectly done by configuring each instance with the
desired logger:
Config:
Anyone know where I can find out the commonly named method signature
differences?
Thanks.
Chris
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
In the Java implementation of Log4j is there something similar to the
BufferingForwardingAppender? We are trying to setup our Java projects
in a similar fashion to our .Net projects. I have searched around and
haven't seen anything.
Thanks,
Tom Henricksen
Consultant
Advanced Technologies
Yes, it is a typo.
Should be:
"I need two full log files for foo.bar.XY and com.create.CR with all the
logs information from test.bulk.ZY"
Yes the foo.bar.XY and com.create.CR are run in different threads.
I want two logs files - one for foo.bar.XY and the second one for
com.create.CR.
All of th
Questions see inline.
Heri
> -Original Message-
> From: Camer38 [mailto:[EMAIL PROTECTED]
> Sent: Monday, July 07, 2008 3:24 PM
> To: log4j-user@logging.apache.org
> Subject: RE: "additivity" attribute does not work for
> user-defined logger but works for root logger.
>
>
> But in my
Thank you very much for the explanation. It makes perfect sense for me.
But in my case I hit slightly different problem.
The class foo.bar.XY calls lets say test.bulk.ZY and the class com.create.CR
calls test.bulk.ZY as well.
I need two full log files for foo.bar.XY and test.bulk.ZY with all th
Now things getting clearer.
Log4j maintains a logger hierarchy which is determined by the dot withing the
logger names, similar to the package hierarchy in java.Example:
Config: you declare a logger "foo.bar" and a root logger, both have one (the
same) appender attached.
Code: class foo.bar
Thanks. I like your idea with the constructor but I call also the code that I
do not have an acces and I cannot modify, so I needed to look for something
different.
I have decided to use apache-log4j-extras-1.0.jar and use
filters(org.apache.log4j.filter.ExpressionFilter).
In each specific cla
10 matches
Mail list logo