|
View:
New views
3 Messages
—
Rating Filter:
Alert me
|
|
|
timstamped logsI have an app using log4net with logging set as follows: <log4net> <appender name="RollingFile"
type="log4net.Appender.RollingFileAppender"> <file value="..\log\OOPCollector.log"
/> <appendToFile value="false" /> <maximumFileSize value="5MB" /> <maxSizeRollBackups value="5" /> <lockingModel
type="log4net.Appender.FileAppender+MinimalLock" /> <layout
type="log4net.Layout.PatternLayout"> <conversionPattern value="%date %5level
[%thread] %logger - %message%newline" /> </layout> </appender> </log4net> The app generally generates these logs; OOPCollector.log OOPCollector.log.1 OOPCollector.log.2 OOPCollector.log.3 OOPCollector.log.4 OOPCollector.log.5 But sometimes we see logs with a timestamp, such as OOPCollector.log.2009-09-18 OOPCollector.log.2009-09-18.1 OOPCollector.log.2009-09-18.2 OOPCollector.log.2009-09-18.3 OOPCollector.log.2009-09-18.4 OOPCollector.log.2009-09-18.5 Under what circumstances are these timestamped logs being
created? |
|
|
RE: timstamped logsHi John,
are the file sizes of the log files you are generating larger than 5mb at all? From: john.fairhall@... To: log4net-user@... Date: Tue, 29 Sep 2009 20:05:03 -0700 Subject: timstamped logs I have an app using log4net with logging set as follows:
<log4net> <appender name="RollingFile" type="log4net.Appender.RollingFileAppender"> <file value="..\log\OOPCollector.log" /> <appendToFile value="false" /> <maximumFileSize value="5MB" /> <maxSizeRollBackups value="5" /> <lockingModel type="log4net.Appender.FileAppender+MinimalLock" />
<layout type="log4net.Layout.PatternLayout"> <conversionPattern value="%date %5level [%thread] %logger - %message%newline" /> </layout> </appender> </log4net>
The app generally generates these logs; OOPCollector.log OOPCollector.log.1 OOPCollector.log.2 OOPCollector.log.3 OOPCollector.log.4 OOPCollector.log.5
But sometimes we see logs with a timestamp, such as
OOPCollector.log.2009-09-18 OOPCollector.log.2009-09-18.1 OOPCollector.log.2009-09-18.2 OOPCollector.log.2009-09-18.3 OOPCollector.log.2009-09-18.4 OOPCollector.log.2009-09-18.5
Under what circumstances are these timestamped logs being created?
Beyond Hotmail - see what else you can do with Windows Live. Find out more. |
|
|
RE: timstamped logsNo, none are. I’ve been playing
around with the logging and it appears that log2net creates the timestamped log
files from non-timestamped log files when the app goes to create a new log file
and the most recent non-timestamped log file was last modified previous to
today. From:
Karim Bourouba [mailto:karym6@...]
are the file sizes of the log files you are generating
larger than 5mb at all? From: john.fairhall@... I have an app using log4net with logging set as follows: <log4net> <appender name="RollingFile"
type="log4net.Appender.RollingFileAppender"> <file
value="..\log\OOPCollector.log" /> <appendToFile
value="false" />
<maximumFileSize value="5MB" />
<maxSizeRollBackups value="5" />
<lockingModel type="log4net.Appender.FileAppender+MinimalLock"
/> <layout
type="log4net.Layout.PatternLayout">
<conversionPattern value="%date %5level [%thread] %logger -
%message%newline" /> </layout> </appender> </log4net> The app generally generates these logs; OOPCollector.log OOPCollector.log.1 OOPCollector.log.2 OOPCollector.log.3 OOPCollector.log.4 OOPCollector.log.5 But sometimes we see logs with a timestamp, such as OOPCollector.log.2009-09-18 OOPCollector.log.2009-09-18.1 OOPCollector.log.2009-09-18.2 OOPCollector.log.2009-09-18.3 OOPCollector.log.2009-09-18.4 OOPCollector.log.2009-09-18.5 Under what circumstances are these timestamped logs being
created? Beyond Hotmail - see what else you can do with Windows
Live. Find
out more. |
| Free embeddable forum powered by Nabble | Forum Help |