Hello,
I use log4j-1.2.8. In my new project I use quartz. Quartz gives me a lot of
logging messages that I don't need. It's especially dangerous because
It writes all of this output to the log file of the server.
I would like to get rid of this. The logging of quartz uses commons logging
which
Logging is a common case study in articles and books on AspectJ
(http://www.eclipse.org/aspectj/) and Aspect Oriented Programming
(AOP). Doing a quick search for "AspectJ" and logging came with
several articles including http://www.developer.com/java/other/
article.php/3109831
AspectJ al
AOP (Aspect Oriented Programming) + Log4j would fit the bill here. Like James
said, Log4j has no way to do this automagically.
Jake
Quoting James Stauffer <[EMAIL PROTECTED]>:
> AFAIK there is no way for log4j to automatically log every method
> entry/exit without explicit logging statements.
AFAIK there is no way for log4j to automatically log every method
entry/exit without explicit logging statements.
On 8/28/06, debasis <[EMAIL PROTECTED]> wrote:
hi,
yes Log4j is a purely logging API. but using Log4j i want to track the
method
entry and exit. what is AFAICS?
can someone help me
hi,
yes Log4j is a purely logging API. but using Log4j i want to track the
method
entry and exit. what is AFAICS?
can someone help me how to implement logging for method entry parameters
and
method exit return value.
can someone help me how to use log4j and integrate it to the method entry
l
if(new File("/path/to/log4j.properties").exists()) {
PropertyConfigurator.configure("/path/to/log4j.properties");
} else {
BasicConfigurator.configure();
}
On 8/28/06, Jon Hoffman <[EMAIL PROTECTED]> wrote:
Hi,
I am new to log4j and trying to use it for a project I am currently
working on. The
MDc uses ThreadLocal so you syou always reset your MDC values between
requests (either clear at the end of the request or overwrite at the
beginning of the request).
On 8/28/06, Meera Mehta <[EMAIL PROTECTED]> wrote:
James,
Thanks for the answer
>"You
> should always assume that you need to res
Hi,
I am new to log4j and trying to use it for a project I am currently
working on. The problem is I would like to specify the location of the
log4j.properties file:
PropertyConfigurator.configure("/path/to/log4j.properties");
But if the file is not found, I would like to use the Basic
configu
James,
Thanks for the answer
>"You
> should always assume that you need to reset the
> ThreadLocal right
> after you retrieve a Thread from a pool."
But i am just using Log4J's MDC.
So My Query is : Is LOG4J resetting ThreadLocal ??? OR
assuming Application(which is using Log4j) to do that
OR A