Custom filename in a rolling Log4Net logfile?

后端 未结 6 1635
刺人心
刺人心 2020-12-24 07:50

We have a ASP .Net application whereby we use Log4Net to log details within the app - nothing new there - and the rolling log filenames are in the usual format of:



        
6条回答
  •  一个人的身影
    2020-12-24 08:54

    I believe the Log4Net configuration file supports environment variables (e.g. USERNAME) as well as customizable patterns which should give you what you want.

    Look at "PatternString for pattern based configuration" in the Log4Net V1.2.10 release notes.

提交回复
热议问题