Logger Class

Summary

Logs avalonia messages.
Namespace
Avalonia.Logging
Base Types
  • object
graph BT Type-->Base0["object"] Type["Logger"] class Type type-node

Syntax

public static class Logger

Properties

Name Value Summary
Sink ILogSink
Gets or sets the application-defined sink that receives the messages.
static

Methods

Name Value Summary
IsEnabled(LogEventLevel, string) bool
Checks if given log level is enabled.
static
TryGet(LogEventLevel, string) ParametrizedLogger?
Returns parametrized logging sink if given log level is enabled.
static
TryGet(LogEventLevel, string, ParametrizedLogger) bool
Returns parametrized logging sink if given log level is enabled.
static