How do I configure a RollingFileAppender to roll by date and size with log4net?

前端 未结 4 1005
迷失自我
迷失自我 2020-12-15 17:42

I am configure log4net to use a composite RollingFileAppender so that the current file is always named logfile.log and all subsequent files are named

4条回答
  •  一生所求
    2020-12-15 18:09

    Try set this property to true:

    preserveLogFileNameExtension value="true"

    I believe this trick will help you! However, preserveLogFileNameExtension property needs the latest version of log4net, you can find it here: logging.apache.org/log4net/download.html

提交回复
热议问题