logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Balaji Saranathan" <balaji.saranat...@wipro.com>
Subject RE: Log4J Help requested
Date Wed, 06 Jul 2005 15:20:49 GMT

I was using the getAllAppenders on the logger that was created with
classname. It returns an empty enumeration. The Root
logger.getAllAppenders lists my appender I added in the configuration.
Is it not true that the appenders are inherited from the rootlogger
unless explictiyl configured?

Thanks

-----Original Message-----
From: Balaji Saranathan [mailto:balaji.saranathan@wipro.com] 
Sent: Wednesday, July 06, 2005 11:12 AM
To: 'Bradley, Todd'; 'Log4J Users List'
Subject: RE: Log4J Help requested



Hmm....I might need some more help.

I use Tomcat5.5 and how do I add this statement on the commandline?

I have the log4j.properties file and use a setupServlet to load it. 
The call to PropertyConfigurator.configure works fine.

- Bala


-----Original Message-----
From: Bradley, Todd [mailto:todd.bradley@Polycom.com] 
Sent: Wednesday, July 06, 2005 10:59 AM
To: Log4J Users List; balaji.saranathan@wipro.com
Subject: RE: Log4J Help requested


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:HBender@Ergonomics.ch]
> Sent: Wednesday, July 06, 2005 8:52 AM
> To: Log4J Users List; balaji.saranathan@wipro.com
> 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:balaji.saranathan@wipro.com]
> > 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 Mailadmin@wipro.com immediately and destroy all copies of 
> > this message and any attachments.
> > 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
> For additional commands, e-mail: log4j-user-help@logging.apache.org
> 
> 




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
Mailadmin@wipro.com immediately and destroy all copies of this message
and any attachments.

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org




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 Mailadmin@wipro.com
immediately
and destroy all copies of this message and any attachments.

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org


Mime
View raw message