I tried the instructions below which was suggested by Robert and it did not work. I did the following
1. Uncommented the following line in commons.logging.properties org.apache.commons.logging.Log=org.apache.commons.logging.impl.Log4JLogg er 2. Added the following in log4j.properties log4j.rootCategory=DEBUG, CONSOLE, LOGFILE 3. Copied the log4j.jar to the lib folder in axis2.war. When logging is enabled does the stack get written to the axis.log? If so in which folder will this file be created? Please help. Thanks Harish -----Original Message----- From: robert lazarski [mailto:[EMAIL PROTECTED] Sent: Friday, December 22, 2006 8:02 AM To: [email protected] Subject: Re: [Axis2] Using log4j in Axis2 What I do is just put a log4j.properties in axis2/WEB-INF/classes, _not_ editing commons-logging.properties as the comments suggest. Then I put the log4j.jar in WEB-INF/lib . That should be all there is to it. Typically I use org.apache.commons.logging.Log as the logger and just use log4j for the file formatting via its appenders, etc, but that's just one way to do it. HTH, Robert On 12/22/06, Danny Lin <[EMAIL PROTECTED]> wrote: > > > Is there an article or document describing how to initialize log4j in a > service archive (AAR file)? I have Axis2 installed as a webapp. If I edit > the WEB-INF\classes\commons-logging.properties, will that be sufficient? I > am talking about logging within my web services, not the AXIS2 itself. > > Thanks. > > Danny > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
