Re: How to make log4j "environment-aware"

2006-04-06 Thread pantichd
Thanks James. I'll take a look and post my result(s). "James Stauffer" <[EMAIL PROTECTED] mail.com>

RE: RollingFileAppender - File not created

2006-04-06 Thread Rob Elliott
Hi, My problem was that my servlet container was already using log4j so my specific properties file was not actually being loaded. So I just needed to add a new RollingFileAppender to the containers log4j.properties file and another line specifying that all logging within my package uses the new

RE: RollingFileAppender - File not created

2006-04-06 Thread Alva Powell
Use this in your config file Log4j.debug=true Then you will see what log4j is loading. --Alva -Original Message- From: Rob Elliott [mailto:[EMAIL PROTECTED] Sent: Thursday, April 06, 2006 9:07 AM To: Log4J Users List Subject: RE: RollingFileAppender - File not created Good point, I d

RE: RollingFileAppender - File not created

2006-04-06 Thread Rob Elliott
Good point, I dropped the A2 business as it was not intended for use and made the rootlogger and A1 Threshold both debug but still no go. How can I determine if appending is enabled? Thanks #Set root logger level to DEBUG and its only appender to A1. log4j.rootLogger=DEBUG, A1 # #Uncomment follo

Re: RollingFileAppender - File not created

2006-04-06 Thread Norbert Toth-Gati
But back to your configuration file: What is the purpose of the below two lines? Maybe you do not even have your appender configured! log4j.rootLogger=INFO, A1 log4j.rootCategory=INFO, A2 Norbert On 4/6/06, Alva Powell <[EMAIL PROTECTED]> wrote: > > I was having a similar problem with the SMTPApp

RE: RollingFileAppender - File not created

2006-04-06 Thread Alva Powell
I was having a similar problem with the SMTPAppender. I ended up having to set the rootLogger to the same level as the appender to get it to work. I know this does not make sense according to the documentation, but it worked for me. --Alva -Original Message- From: Rob Elliott [mailto:[

RE: RollingFileAppender - File not created

2006-04-06 Thread Rob Elliott
Thanks for your reply. I did try c:\\SMSTest.log and now just tried c:/SMSTest.log but no file. I debug the following code using Eclipse and the LOG.debug statement is executed... I'm running this code from within a servlet...? if( LOG.isDebugEnabled() ) { LOG.debug( "SendSMS.sar: The me

Re: RollingFileAppender - File not created

2006-04-06 Thread Norbert Toth-Gati
Hi Rob, you should specifiy the File property as one of the following: log4j.appender.A1.File=c:/SMSTest.log or log4j.appender.A1.File=c:\\SMSTest.log This is a specific problem for MS Windows platform. Regards, Norbert On 4/6/06, Rob Elliott <[EMAIL PROTECTED]> wrote: > Here is my properties f

RollingFileAppender - File not created

2006-04-06 Thread Rob Elliott
Here is my properties file. When I debug my program I check if DEBUG is enabled and it is. It appears to right to the file but the file does not seem to be created... Thanks. #Set root logger level to DEBUG and its only appender to A1. log4j.rootLogger=INFO, A1 # #Uncomment following line for soc

rename log file at start of application server ...

2006-04-06 Thread Norbert Toth-Gati
Hi, so it is not overwritten. I found a thread earlier discussing this problem, " >From "jerome moliere" <[EMAIL PROTECTED]> Subject Re: Log File Name !! DateWed, 23 Feb 2005 13:33:56 GMT > I think RollingFileAppender does that except that it does it by size, > not by run.