Base interface for classes that handle log messages.
interface
|
ILogMessageHandler
|
base of
|
LogMessageHandler
|
||
SeverityMessageHandler
|
Handles the given log message.
method
|
HandleLogMessage
(ILogger source,
LogSeverity logSeverity,
string logMessage)
|
||
params
|
source
|
[not-null]
|
The ILogger that has been used to emit the log message. |
logSeverity
|
The LogSeverity of the log message. | ||
logMessage
|
[not-null]
|
The log message |
Remarks:
All exceptions that are thrown by implementing methods are dropped silently.
Checks if this log message handler is redundant if the given one is already present.
method
|
IsRedundant
(ILogMessageHandler other)
|
||
type
|
bool
|
||
params
|
other
|
[not-null]
|
The other handler. |
returns
|
true
if
this
log
message
handler
is
redundant,
false
if
not.
|
Changes the maximum log severity of this handler.
method
|
Severity
(LogSeverity severity)
|
||
type
|
ILogMessageHandler
|
||
params
|
severity
|
The new maximum log severity. | |
returns
|
|
The resulting log message handler. |