Top "Log4net" questions

The Apache log4net library is a tool to help the programmer output log statements to a variety of output targets.

Why do loggers recommend using a logger per class?

As per NLog's documentation: Most applications will use one logger per class, where the name of the logger is the …

c# log4net logging nlog
Referencing 2 different versions of log4net in the same solution

I'm using NHibernate 2.1.2.400 that is referencing log4net 1.2.10.0. In the same project, I also use the simply accounting SDK, sadly …

.net nhibernate dll log4net
How do I configure log4net so that log.IsDebugEnabled is true?

I am trying to use log4net in an ASP.NET application with Visual Studio 2005. I have declared an instance …

vb.net debugging configuration log4net
How to use Property Injection with AutoFac?

In a Console application, I'm using Log4Net and in the Main method I'm getting the logger object. Now, I'd …

c# asp.net inversion-of-control log4net autofac
how do I work around log4net keeping changing publickeytoken

We have an asp.net 4.0 project which uses a couple of frameworks which is dependent on log4net version 1.2.10.0. Today …

.net dll log4net publickeytoken
When to use 'nested diagnostic context' (NDC)?

Playing with log4net, I have seen the possibility to use a per-thread stack of context labels called the NDC. …

.net logging log4net ndc
Log4Net RollingFileAppender with composite rolling style is overwritting data

I have a Log4Net RollingFileAppender that is configured as: <configuration> <configSections> <section name="log4…

logging log4net rollingfileappender
How to specify common application data folder for log4net?

I want log4net to write log files (using RollingFileAppender) to a subfolder of the common application data folder (e.…

logging log4net environment-variables
How do you configure and enable log4net for a stand-alone class library assembly?

Background I am writing a class library assembly in C# .NET 3.5 which is used for integration with other applications including …

c# .net log4net
Send an Email When an Error Occurs

Currently my application is using log4net to log errors, the web.config for this is as followed: <log4…

c# email log4net