LoggingExtensionsLogToTrace Method

Logs Avalonia events to the Trace sink.

Definition

Namespace: Avalonia
Assembly: Avalonia.Controls (in Avalonia.Controls.dll) Version: 11.3.999
public static AppBuilder LogToTrace(
	this AppBuilder builder,
	LogEventLevel level = LogEventLevel.Warning,
	params string[] areas
)

Parameters

builder  AppBuilder
The app builder instance.
level  LogEventLevel  (Optional)
The minimum level to log.
areas  String
The areas to log. Valid values are listed in LogArea.

Return Value

AppBuilder
The app builder instance.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type AppBuilder. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

See Also