Log4Net can't find %username property when I name the file in my appender

前端 未结 5 1300
滥情空心
滥情空心 2020-12-19 10:48

log4net doesn\'t do the correct PatternString substitution for my login name. I want my log to be

Logs\\YYYYMMDD\\MSMQcore_[username].lo

5条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-19 11:36

    Using "%username" works for me;

    
        
        
        
        
        
        
    
    

    But then again I am in the context of a standard WinForms application, not an ASP.NET app. Not sure if this is what you're looking for.

提交回复
热议问题