Configuring log4net to write on a database

You need to create the database and the Log table yourself.

If you want to diagnose possible issues with log4net, you can create a diagnostic trace by adding this to your .config file:

  <trace autoflush="true">
        initializeData="C:\whatever\your\path\is\log4net.txt" />

and adding the debug switch:

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

Leave a Comment