Add a -Dlog4j.debug=true to your java command line to see which
properties file log4j is really using.


Todd.


> -----Original Message-----
> From: Bender Heri [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, July 06, 2005 8:52 AM
> To: Log4J Users List; [EMAIL PROTECTED]
> Subject: RE: Log4J Help requested
> 
> Your property file is maybe not in the classpath? Or has not 
> the default name?
> 
> > -----Original Message-----
> > From: Balaji Saranathan [mailto:[EMAIL PROTECTED]
> > Sent: Wednesday, July 06, 2005 4:46 PM
> > To: log4j-user@logging.apache.org
> > Subject: Log4J Help requested
> > 
> > 
> > 
> > Hi,
> > 
> > I'm new to log4j and I configured my web application to use a 
> > RollingFileAppender with these statements in the property file
> > 
> > log4j.rootLogger=debug,framework
> > log4j.appender.framework=org.apache.log4j.RollingFileAppender
> > log4j.appender.framework.layout=org.apache.log4j.HTMLLayout
> > log4j.appender.framework.File=framework.log
> > log4j.appender.framework.MaxBackupIndex=2
> > 
> > However, when I create a logger and try to print the Appenders 
> > associated to it, I get an empty enumeration. Needless to 
> say, my log 
> > messages are not printed anywhere?
> > 
> > Can you tell me where I'm wrong?
> > 
> > Thanks
> > Bala
> > 
> > 
> > 
> > 
> > 
> > 
> > Confidentiality Notice
> > 
> > The information contained in this electronic message and any 
> > attachments to this message are intended for the exclusive 
> use of the 
> > addressee(s) and may contain confidential or privileged 
> information. 
> > If you are not the intended recipient, please notify the sender at 
> > Wipro or [EMAIL PROTECTED] immediately and destroy all copies of 
> > this message and any attachments.
> > 
> 
> ---------------------------------------------------------------------
> 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]

Reply via email to