Log4Net File Appender Not Logging

前端 未结 4 1692

my FileAppender isn\'t working. It probably isn\'t a permissions thing as I\'m local admin.

I\'ve enabled internal debugging and I\'m not getting any errors or exce

4条回答
  •  隐瞒了意图╮
    2020-12-19 18:37

    There are 2 main options to enable logging. Refer to the Configuration manual for more details.

    1. Use XmlConfigurator.Configure()
    2. Add [assembly: log4net.Config.XmlConfigurator(Watch=true)] to AssemblyInfo.cs

    BasicConfigurator.Configure() can only write to the console.

提交回复
热议问题