Skip to content

Logger Class

Handles pub-sub event marshalling across all log listeners and sources.

C#
public static class Logger

Inheritance object

Log levels that are currently listened to by at least one listener.

C#
public static LogLevel ListenedLogLevels { get; }

Collection of all log listeners that receive log events.

C#
public static ICollection<ILogListener> Listeners { get; }

Collection of all log source that output log events.

C#
public static ICollection<ILogSource> Sources { get; }

Creates a new log source with a name and attaches it to Sources.

C#
public static ManualLogSource CreateLogSource(string sourceName)

sourceName string
Name of the log source to create.

ManualLogSource
An instance of ManualLogSource that allows to write logs.