How to configure log4net to print to console in debug mode

后端 未结 2 1038
没有蜡笔的小新
没有蜡笔的小新 2020-12-24 00:40

Is there a way to configure log4net to print logs both to console and to files during debug?

I am trying to find a way to debug my software efficiently by observing

2条回答
  •  南方客
    南方客 (楼主)
    2020-12-24 00:58

    It looks like you've forgotten to hook your appender up to the root logging:

    
      
      
      
    
    

提交回复
热议问题