https://issues.apache.org/bugzilla/show_bug.cgi?id=52077
Bug #: 52077
Summary: Log entries are lost after rollover
Product: Log4j
Version: 1.2
Platform: PC
Status: NEW
Severity: normal
Priority: P2
Component: Appender
AssignedTo: [email protected]
ReportedBy: [email protected]
Classification: Unclassified
Hi,
We have configured Jboss to initialise Log4j with our log4j.xml rather than use
Jboss's inbuilt log4j.We are using RollingFileAppender which is set up to
rollover the log file on reaching a size limit of 1MB.The rollover happens
without any issues.We see a weird issue after the rollover.For ex:Rollover
happens and we have to files - server.log.1(1 MB) and server.log(6 KB).Now if
our application logs anything the new log entries go to server.log but the
existing log entries are overwritten.The logs start from the start of the file
rather than append to the bottom.The old log server.log.1 remains as it is.
This happens randomly and most of the time when the new log size is quite
small.
Since Jboss comes with its own log4j set-up I have tried to increase Jboss
server logging to see if Jboss is initialising the appenders again even though
we are using our own log4j.xml.So far I haven't seen anything of that sort
happening in the jboss logs.Has anybody come across this issue or is this a
known issue with log4j.
Suhana
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]