Summary
Returns parametrized logging sink if given log level is enabled.
- Namespace
- Avalonia
.Logging - Containing Type
- Logger
Syntax
public static ParametrizedLogger? TryGet(LogEventLevel level, string area)
Parameters
Name | Type | Description |
---|---|---|
level | LogEventLevel | The log event level. |
area | string | The area that the event originates from. |
Return Value
Type | Description |
---|---|
ParametrizedLogger? | Log sink or if log level is not enabled. |