LoggingExtensions.

LogToTrace<T>(T, LogEventLevel, string[]) Method

Summary

Logs Avalonia events to the System.Diagnostics.Trace sink.
Namespace
Avalonia
Containing Type
LoggingExtensions

Syntax

public static T LogToTrace<T>(this T builder, LogEventLevel level = Warning, params string[] areas) 
    where T : AppBuilderBase<T>, new()

Type Parameters

Name Description
T The application class type.

Parameters

Name Type Description
builder T The app builder instance.
level LogEventLevel The minimum level to log.
areas string[] The areas to log. Valid values are listed in LogArea.

Return Value

Type Description
T The app builder instance.