How to track down log4net problems

后端 未结 6 2024
生来不讨喜
生来不讨喜 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:37

    In log4net 2.0.8 it seems not to be possible to make the logging with log4net in a separate DLL. If I tried this, the results are very strange: No logging is performed anymore. And the initialization of log4net with the debug option shows no Errors.

    Like K0D4 said, you should have a reference to log4net in your main-module and should it call once on the start of the Programm and all is fine.

    In the next version of log4net, this bug will be probably be fixed.

提交回复
热议问题