You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-user@logging.apache.org by Chimbu Thankachan <ch...@yahoo.co.in> on 2002/04/29 11:43:35 UTC
rotation of log happens only in certain situations why?
Hi,
If anyone of you people remember, I had put up an
issue saying the the Rolling of the log doesnot work.
well today I found out that, the rolling will happen
only if the file is being written to when the rolling
condition is triggered.
ie let say I am using the option,
log4j.appender.Default.DatePattern='.'yyyy-MM-dd-HH
this means that logfile should be rotated, but that
doesnot happen. The log file will be rotated only if
some program is writing into the log during 59th
minute of any hour.
Is this correct behaviour or is it a bug?
regards
chimbu
________________________________________________________________________
For live cricket scores download Yahoo! Score Tracker
at: http://in.sports.yahoo.com/cricket/tracker.html
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
RE: rotation of log happens only in certain situations why?
Posted by Thomas Tuft Muller <tt...@online.no>.
Chimbu,
Without any knowledge of the code, I assume that the rotation
is done in the caller thread, and not in a separate (deamon)
thread. This means that the rolling condition is checked
and the rolling possibly triggered upon each entry written to
the appender in question.
--
Thomas
| -----Original Message-----
| From: Chimbu Thankachan [mailto:chimbut@yahoo.co.in]
| Sent: 29 April 2002 10:44
| To: log4j-user@jakarta.apache.org
| Cc: ceki@qos.ch
| Subject: rotation of log happens only in certain situations why?
|
|
| Hi,
|
| If anyone of you people remember, I had put up an
| issue saying the the Rolling of the log doesnot work.
|
| well today I found out that, the rolling will happen
| only if the file is being written to when the rolling
| condition is triggered.
|
| ie let say I am using the option,
| log4j.appender.Default.DatePattern='.'yyyy-MM-dd-HH
| this means that logfile should be rotated, but that
| doesnot happen. The log file will be rotated only if
| some program is writing into the log during 59th
| minute of any hour.
|
| Is this correct behaviour or is it a bug?
|
| regards
| chimbu
|
| ________________________________________________________________________
| For live cricket scores download Yahoo! Score Tracker
| at: http://in.sports.yahoo.com/cricket/tracker.html
|
| --
| To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
*************************************************************************
Copyright ERA Technology Ltd. 2002. (www.era.co.uk). All rights reserved.
The information supplied in this email should be treated in confidence.
No liability whatsoever is accepted for any loss or damage
suffered as a result of accessing this message or any attachments.
________________________________________________________________________
This email has been scanned for all viruses by the MessageLabs SkyScan
service. For more information on a proactive anti-virus service working
around the clock, around the globe, visit http://www.messagelabs.com
________________________________________________________________________
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>