Logger.

TryGet(LogEventLevel, string, ParametrizedLogger) Method

Summary

Returns parametrized logging sink if given log level is enabled.
Namespace
Avalonia.Logging
Containing Type
Logger

Syntax

public static bool TryGet(LogEventLevel level, string area, out ParametrizedLogger outLogger)

Parameters

Name Type Description
level LogEventLevel The log event level.
area string The area that the event originates from.
outLogger ParametrizedLogger Log sink that is valid only if method returns .

Return Value

Type Description
bool if logger was obtained successfully.