Apache log4net� SDK Documentation - Microsoft .NET Framework 4.0

Logger Class

Implementation of ILogger used by Hierarchy

For a list of all members of this type, see Logger Members.

System.Object
���log4net.Repository.Hierarchy.Logger
������log4net.Repository.Hierarchy.RootLogger

[Visual�Basic]
MustInherit�Public�Class�Logger
����Implements�IAppenderAttachable, ILogger
[C#]
public�abstract�class�Logger : IAppenderAttachable, ILogger

Thread Safety

Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.

Remarks

Internal class used to provide implementation of ILogger interface. Applications should use LogManager to get logger instances.

This is one of the central classes in the log4net implementation. One of the distinctive features of log4net are hierarchical loggers and their evaluation. The Hierarchy organizes the Logger instances into a rooted tree hierarchy.

The Logger class is abstract. Only concrete subclasses of Logger can be created. The ILoggerFactory is used to create instances of this type for the Hierarchy.

Requirements

Namespace: log4net.Repository.Hierarchy

Assembly: log4net (in log4net.dll)

See Also

Logger Members | log4net.Repository.Hierarchy Namespace