LoggingExtensionsLogToTrace Method
Logs Avalonia events to the
Trace sink.
Namespace: AvaloniaAssembly: Avalonia.Controls (in Avalonia.Controls.dll) Version: 11.3.999
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
- 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.
AppBuilderThe app builder instance.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).