Hi,

 

Any one has written taskManager program to handling DailyRollingFileAppender.

 

Regards,

Arun

 

-----Original Message-----
From: Shawn Wilson [mailto:[EMAIL PROTECTED]]
Sent
: Monday, September 09, 2002 10:22 PM
To: Arun Jannela
Cc: log4j
Subject: RE: Regarding DailyRollingFileAppender

 

Arun,

 

Hmm that is odd. When I've used it, it rolls over the log whether I'm using the application or not. When it starts up, it's supposed to check the modification date of the log file, and if it's the previous day, it will roll it then and there. So if your application is not running overnight, then the next day when you start it, it will roll the log file (but only after something actually gets logged). It won't actually roll it until something new gets logged, since rolling is part of the logging procedure.

 

Now, I've been having problems with the way it renames the files, so I'm thinking of making some modifications for our purposes:

 

- Let's say the log name is mylog.log

- Instead of the current logging going into mylog.log, it will actually make a mylog.2002-09-09.log file for the current day and log in there.

- That way, there will never be a mylog.log file, so ALL the logs (even the current one) will be dated.

 

If you think this modification will interest you, let me know and I'll send it to you once I finish.

 

-shawn

====================================
Shawn Wilson [[EMAIL PROTECTED]]
Software Developer, ATMReports.com
PH: 877-327-0873, FAX: 406-294-5806
====================================
 

-----Original Message-----
From: Arun Jannela [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 09, 2002 10:36 AM
To: [EMAIL PROTECTED]
Subject: Regarding DailyRollingFileAppender

Hi Shawn,

 

The DailyRollingFileAppender in log4j1.2.6, would roll over the file at

 

 the designated time, only if someone was using the application at the

 

 time.

 

 For example, I had set mine to change at midnight and found that I had

 

 to be using the application at midnight for it to work.

 

 I have changed the time and tested but I was unable to get the file.I got

 only todays file If send the request it creates the file

 

 

 

 Please pass some suggestions to me. As it was very urgent.

 

 

 Regards,

Arun

 

 

**************************Disclaimer************************************************** 
   
 
 Information contained in this E-MAIL being proprietary to Wipro Limited is 
'privileged' 
and 'confidential' and intended for use only by the individual or entity to which it 
is 
addressed. You are notified that any use, copying or dissemination of the information 
contained in the E-MAIL in any manner whatsoever is strictly prohibited.

****************************************************************************************




--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to