Assembly: log4net (in log4net.dll) Version: 1.2.15.0 (1.2.15.0)
Use the LogManager to obtain logger instances that implement this interface. The GetLogger(Assembly, Type) static method is used to get logger instances.
This class contains methods for logging at different levels and also has properties for determining if those logging levels are enabled in the current configuration.
This interface can be implemented in different ways. This documentation specifies reasonable behavior that a caller can expect from the actual implementation, however different implementations reserve the right to do things differently.
ILog log = LogManager.GetLogger("application-log"); log.Info("Application Start"); log.Debug("This is a debug message"); if (log.IsDebugEnabled) { log.Debug("This is another debug message"); }