Log4net RollingFileAppender Size rollingStyle file extension

后端 未结 1 1444

I am using the RollingFileAppender and the Size rollingStyle. By default it creates backup files with a numbered extension, this drives me nuts. Is it possible

相关标签:
1条回答
  • 2020-12-16 11:12

    The PreserveLogFileNameExtension property set to true should do the trick. Note: this property is not available in the currently released version 1.2.10 but is part of the current source. If you grab and build the source you're good to go.

    Update: it is great to see log4net is moving forward. Version 1.2.11, and with it the PreserveLogFileNameExtension property, have been released.

    0 讨论(0)
提交回复
热议问题