How I can set log4net to log my files into different folders each day?

前端 未结 5 1752
终归单人心
终归单人心 2020-11-30 06:53
  1. I want to save all logs during each day in folder named YYYYMMdd - log4net should handle creating new folder depending on system datetime - how I can setup this?
5条回答
  •  [愿得一人]
    2020-11-30 07:32

    I believe, you may create your own appender, based on the FileAppender class. You may need to override the OpenFile method to create a file in the right location.

提交回复
热议问题