Tutorial by Examples

There are 2 way of enabling internal debugging in log4net: Specify the log4net.Internal.Debug option in the application's config file Enable log4net's internal debug programmatically Specify the log4net.Internal.Debug option in the application's config file This is the preferred method to en...
Some of the log4net appenders are buffered appenders. These appenders will only log when a certain amount of messages are logged. Some samples are the SmtpAppender, RemotingAppender or the AdoNetAppender. These appenders have a setting BufferSize: <bufferSize value="100" /> This ...
If you do not see any logging, you can check if Configure() is called in your application. The easiest way is to add it as an attribute to your assembly: [assembly: log4net.Config.XmlConfigurator(Watch = true)] Then you do not have to add log4net.Config.XmlConfigurator.Configure() anywhere in y...
If you have a file appender, make sure you are writing to a location where the user is allowed to create and update the files. If not the logging will fail. You can check this when you have internal debugging enabled.

Page 1 of 1