Custom filename in a rolling Log4Net logfile?

后端 未结 6 1623
刺人心
刺人心 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:51

    I don't think that log file per user is possible but you can write custom layer between log4net and your application which prepends user id before writing to log.

提交回复
热议问题