How do I use a GlobalContext property in a log4net appender name?

后端 未结 4 1631
终归单人心
终归单人心 2020-12-01 00:37

I\'m trying to customise a log4net file path to use a property I have set in the log4net.GlobalContext.Properties dictionary.

log4net.GlobalCont         


        
4条回答
  •  南笙
    南笙 (楼主)
    2020-12-01 01:35

    Has the logger been initialized through the global or main method in the application? It could be that the GlobalContext has not been initialize yet.

提交回复
热议问题