RE: Log4J Help requested

2005-07-06 Thread Bender Heri
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]



RE: Log4J Help requested

2005-07-06 Thread Balaji Saranathan

HmmI 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:[EMAIL PROTECTED] 
Sent: Wednesday, July 06, 2005 10:59 AM
To: Log4J Users List; [EMAIL PROTECTED]
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:[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]
 
 




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]



RE: Log4J Help requested

2005-07-06 Thread Balaji Saranathan

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:[EMAIL PROTECTED] 
Sent: Wednesday, July 06, 2005 11:12 AM
To: 'Bradley, Todd'; 'Log4J Users List'
Subject: RE: Log4J Help requested



HmmI 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:[EMAIL PROTECTED] 
Sent: Wednesday, July 06, 2005 10:59 AM
To: Log4J Users List; [EMAIL PROTECTED]
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:[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]
 
 




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]




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]