struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Antony Stace <>
Subject Problem with log4j and struts - log info going to 2 files.
Date Mon, 08 Apr 2002 03:15:00 GMT
Hi Folks

I am trying to setup log4j with struts.  I have added to each of the
files I want log messages for

    static Category cat = Category.getInstance(ClassName.class.getName() );

and then when I want to write to the log file I have added

cat.debug("Debug message");

this is working fine except I have output written to both

and file I have defined in as the output file.

How can I configure log4j so it only writes to log4j.appender.A2.file and 
doesn't write anything to 


Thanks for your help.



Do You Yahoo!?
Get your free address at

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message