Skip to main content

LogToTrace Method

Logs Avalonia events to the Trace sink.

Definition​

Namespace: Avalonia
Assembly: Avalonia.Controls (in Avalonia.Controls.dll)

public static AppBuilder LogToTrace(
this AppBuilder builder,
LogEventLevel level = LogEventLevel.Warning,
params string[] areas
)

Parameters​

  AppBuilder
The app builder instance.
  LogEventLevel  (Optional)
The minimum level to log.
  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​

Reference​

LoggingExtensions Class
Avalonia Namespace