ILogSink Interface
Definition
Defines a sink for Avalonia logging messages.
public interface ILogSink
Methods
| Name | Description |
|---|---|
| IsEnabled | Checks if given log level and area is enabled. |
| Log (2 overloads) | Logs an event. |
IsEnabled Method
Checks if given log level and area is enabled.
public bool IsEnabled(Avalonia.Logging.LogEventLevel level, string area)
Parameters
level Avalonia.Logging.LogEventLevel
The log event level.
area string
The log area.
Returns
bool
if given log level is enabled.
Log overloads
Log Method
Logs an event.
public void Log(Avalonia.Logging.LogEventLevel level, string area, object source, string messageTemplate)
Parameters
level Avalonia.Logging.LogEventLevel
The log event level.
area string
The area that the event originates.
source object
The object from which the event originates.
messageTemplate string
The message template.
Log Method
Logs a new event.
public void Log(Avalonia.Logging.LogEventLevel level, string area, object source, string messageTemplate, object[] propertyValues)
Parameters
level Avalonia.Logging.LogEventLevel
The log event level.
area string
The area that the event originates.
source object
The object from which the event originates.
messageTemplate string
The message template.
propertyValues object[]
The message property values.