How to track down log4net problems

后端 未结 6 1965
生来不讨喜
生来不讨喜 2020-11-22 05:19

I use log4net all the time, but one thing I\'ve never figured out is how to tell what\'s going on on the inside. For example, I\'ve got a console appender and a database app

6条回答
  •  刺人心
    刺人心 (楼主)
    2020-11-22 05:25

    If the internal log doesn't give you enough information, it's very easy to build and debug the source code. If you don't want to mix this up with your development project, add a simple console application which just logs a message, copy your project's log4net.config to this application, and debug the class in question.

提交回复
热议问题