A Sandcastle Documented Class Library
ILogger Interface |
Platform independent and logging framework independent interface which loggers must implement.
Namespace: Tego.Logging
Assembly: Tego (in Tego.dll) Version: 1.0.6599.21663 (1.2017.413.1)
Syntax
The ILogger type exposes the following members.
Properties
Name | Description | |
---|---|---|
IsDebugEnabled |
True if Debug is enabled; otherwise false
| |
IsErrorEnabled |
True if Error is enabled; otherwise false
| |
IsFatalEnabled |
True if Fatal is enabled; otherwise false
| |
IsInfoEnabled |
True if Info is enabled; otherwise false
| |
IsWarnEnabled |
True if Warn is enabled; otherwise false
|
Methods
Name | Description | |
---|---|---|
Debug(Object) |
Logs debug message
| |
Debug(Object, Exception) |
Logs debug message and exception
| |
DebugFormat(String, Object) |
Formats debug message
Replaces the format items in a specified string with
the string expression of a corresponding object in specific array
| |
DebugFormat(IFormatProvider, String, Object) |
Formats debug message
Replaces the format items in a specified string with
the string expression of a corresponding object in specific array
| |
Error(Object) |
Logs error message
| |
Error(Object, Exception) |
Logs error message and exception
| |
ErrorFormat(String, Object) |
Formats error message
Replaces the format items in a specified string with
the string expression of a corresponding object in specific array
| |
ErrorFormat(IFormatProvider, String, Object) |
Formats error message
Replaces the format items in a specified string with
the string expression of a corresponding object in specific array
| |
Fatal(Object) |
Logs fatal message
| |
Fatal(Object, Exception) |
Logs fatal message and exception
| |
FatalFormat(String, Object) |
Formats fatal message
Replaces the format items in a specified string with
the string expression of a corresponding object in specific array
| |
FatalFormat(IFormatProvider, String, Object) |
Formats fatal message
Replaces the format items in a specified string with
the string expression of a corresponding object in specific array
| |
Info(Object) |
Logs info message
| |
Info(Object, Exception) |
Logs info message and exception
| |
InfoFormat(String, Object) |
Formats info message
Replaces the format items in a specified string with
the string expression of a corresponding object in specific array
| |
InfoFormat(IFormatProvider, String, Object) |
Formats info message
Replaces the format items in a specified string with
the string expression of a corresponding object in specific array
| |
Warn(Object) |
Logs warning message
| |
Warn(Object, Exception) |
Logs warning message and exception
| |
WarnFormat(String, Object) |
Formats warning message
Replaces the format items in a specified string with
the string expression of a corresponding object in specific array
| |
WarnFormat(IFormatProvider, String, Object) |
Formats warning message
Replaces the format items in a specified string with
the string expression of a corresponding object in specific array
|
Extension Methods
Name | Description | |
---|---|---|
Debug |
Logs debug message to Logger
(Defined by LoggingExtensions.) | |
Error |
Logs error message to Logger
(Defined by LoggingExtensions.) | |
Fatal |
Logs fatal message to Logger
(Defined by LoggingExtensions.) | |
Info |
Logs info message to Logger
(Defined by LoggingExtensions.) | |
Warn |
Logs warn message to Logger
(Defined by LoggingExtensions.) |
Remarks
Interface is styled on log4net ILog interface.
See Also