Thursday, November 6, 2008

How to switch on log4net internal logging

If you want log4net to show its own internal logging, which is useful to find out where it is looking for your XML configuration file, you can add the following XML to your app.config file:

<add key="log4net.Internal.Debug" value="true"/>

Note that if you are using log4net in a DLL, this goes into the app.config file for the EXE that is calling your DLL.

No comments: