Details
Description
<appendToFile value="true" />
<maximumFileSize value="4MB" />
<maxSizeRollBackups value="-1" />
<rollingStyle value="Composite" />
<countDirection value="1" />
<staticLogFileName value="false" />
<datePattern value="'Abc-'yyyyMMdd'.log'" />
<preserveLogFileNameExtension value="true" />
My log4net config as below, and I find some question should be enhancement.
- If my datePatten Set Abc (1 capital letter), Log4net core may course override log file.
Some user has same question(https://blog.gss.com.tw/index.php/2017/11/11/log4net/) - If the preserveLogFileNameExtension = true, when the Log create to 11th, it will override first file.
(Example:Abc-20180820.0.log、20180820.1.log.....20180820.10.log、20180820.11.log..then the log will override 20180820.1.log again..)
Attachments
Attachments
Issue Links
- is superceded by
-
LOG4NET-367 RollingFileAppender-NG: rewrite the RollingFileAppender
- Open