LogManager ClassApache log4net™ SDK Documentation
This class is used by client applications to request logger instances.
Inheritance Hierarchy

OnlineSystem Object
  log4net LogManager

Namespace: log4net
Assembly: log4net (in log4net.dll) Version: 1.2.15.0 (1.2.15.0)
Syntax

public sealed class LogManager
Remarks

This class has static methods that are used by a client to request a logger instance. The [M:GetLogger(string)] method is used to retrieve a logger.

See the ILog interface for more details.

Examples

Simple example of logging messages
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");
}
Thread Safety

Static members of this type are safe for multi-threaded operations. Instance members of this type are safe for multi-threaded operations.
See Also