Interface that all loggers implement
Namespace: log4net.Core
Assembly: log4net (in log4net.dll) Version: 2.0.6.0-.NET 4.0
Syntax
The ILogger type exposes the following members.
Properties
Name | Description | |
---|---|---|
Name |
Gets the name of the logger.
| |
Repository |
Gets the ILoggerRepository where this
Logger instance is attached to.
|
Methods
Name | Description | |
---|---|---|
IsEnabledFor |
Checks if this logger is enabled for a given Level passed as parameter.
| |
Log(LoggingEvent) |
This is the most generic printing method that is intended to be used
by wrappers.
| |
Log(Type, Level, Object, Exception) |
This generic form is intended to be used by wrappers.
|
Remarks
This interface supports logging events and testing if a level is enabled for logging.
These methods will not throw exceptions. Note to implementor, ensure that the implementation of these methods cannot allow an exception to be thrown to the caller.
See Also