ILogListener
Name | Value |
---|---|
Assembly | Catel.Core |
Namespace | Catel.Logging |
Available on | .NET Framework 4.5, .NET Framework 4.6, Portable Class Libraries, Xamarin - Android, Xamarin - iOS |
public interface ILogListener
Interface allowing external subscribers for the logging.
Properties
IgnoreCatelLogging
Gets or sets a value indicating whether to ignore Catel logging.
IsDebugEnabled
Gets or sets a value indicating whether this listener is interested in debug messages. This default value istrue
.
IsErrorEnabled
Gets or sets a value indicating whether this listener is interested in error messages. This default value istrue
.
IsInfoEnabled
Gets or sets a value indicating whether this listener is interested in info messages. This default value istrue
.
IsStatusEnabled
Gets or sets a value indicating whether this listener is interested in status messages. This default value istrue
.
IsWarningEnabled
Gets or sets a value indicating whether this listener is interested in warning messages. This default value istrue
.
TimeDisplay
Gets or sets a value indicating what format of time to use. This default value isTime
.
Events
LogMessage
Occurs when a log message is written to one of the logs.
Methods
Debug(ILog log, string message, object extraData, LogData logData, DateTime time)
Called when a Debug message is written to the log.
Parameters
Name | Description |
---|---|
log | The log. |
message | The message. |
extraData | The additional data. |
logData | The log data. |
time | The time. |
Error(ILog log, string message, object extraData, LogData logData, DateTime time)
Called when a Error message is written to the log.
Parameters
Name | Description |
---|---|
log | The log. |
message | The message. |
extraData | The additional data. |
logData | The log data. |
time | The time. |
Info(ILog log, string message, object extraData, LogData logData, DateTime time)
Called when a Info message is written to the log.
Parameters
Name | Description |
---|---|
log | The log. |
message | The message. |
extraData | The additional data. |
logData | The log data. |
time | The time. |
Status(ILog log, string message, object extraData, LogData logData, DateTime time)
Called when a Status message is written to the log.
Parameters
Name | Description |
---|---|
log | The log. |
message | The message. |
extraData | The additional data. |
logData | The log data. |
time | The time. |
Warning(ILog log, string message, object extraData, LogData logData, DateTime time)
Called when a Warning message is written to the log.
Parameters
Name | Description |
---|---|
log | The log. |
message | The message. |
extraData | The additional data. |
logData | The log data. |
time | The time. |
Write(ILog log, string message, LogEvent logEvent, object extraData, LogData logData, DateTime time)
Called when any message is written to the log.
Parameters
Name | Description |
---|---|
log | The log. |
message | The message. |
logEvent | The log event. |
extraData | The additional data. |
logData | The log data. |
time | The time. |
Have a question about Catel? Use StackOverflow with the Catel tag!