Logger Class
Definition
Section titled “Definition”Handles pub-sub event marshalling across all log listeners and sources.
public static class Logger
Inheritance object
Properties
Section titled “Properties”ListenedLogLevels
Section titled “ListenedLogLevels”Log levels that are currently listened to by at least one listener.
public static LogLevel ListenedLogLevels { get; }
Listeners
Section titled “Listeners”Collection of all log listeners that receive log events.
public static ICollection<ILogListener> Listeners { get; }
Sources
Section titled “Sources”Collection of all log source that output log events.
public static ICollection<ILogSource> Sources { get; }
Methods
Section titled “Methods”CreateLogSource(string)
Section titled “CreateLogSource(string)”Creates a new log source with a name and attaches it to Sources.
public static ManualLogSource CreateLogSource(string sourceName)
Parameters
Section titled “Parameters”sourceName
string
Name of the log source to create.
Returns
Section titled “Returns”ManualLogSource
An instance of ManualLogSource that allows to write logs.