LogToTrace Method
Logs Avalonia events to the Trace sink.
Definition
Namespace: Avalonia
Assembly: Avalonia.Controls (in Avalonia.Controls.dll)
- C#
- VB
- F#
public static AppBuilder LogToTrace(
this AppBuilder builder,
LogEventLevel level = LogEventLevel.Warning,
params string[] areas
)
<ExtensionAttribute>
Public Shared Function LogToTrace (
builder As AppBuilder,
Optional level As LogEventLevel = LogEventLevel.Warning,
ParamArray areas As String()
) As AppBuilder
[<ExtensionAttribute>]
static member LogToTrace :
builder : AppBuilder *
?level : LogEventLevel *
areas : string[]
(* Defaults:
let _level = defaultArg level LogEventLevel.Warning
*)
-> AppBuilder
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).