Method | Description | |
---|---|---|
AddDebugListener ( bool ignoreCatelLogging = false ) : ILogListener |
Registers the default debug listener. Starting with Catel 2.4, the debug listener is no longer attached for performance reasons. To register the debug listener, call this method.
|
|
AddListener ( ILogListener listener ) : void |
Adds a log listener which will receive all log events.
|
|
ClearListeners ( ) : void |
Clears all the current listeners.
|
|
FlushAll ( ) : void |
Flushes all listeners that implement the IBatchLogListener by calling IBatchLogListener.Flush.
|
|
GetListeners ( ) : IEnumerable |
Gets all the currently registered log listeners.
|
|
GetLogger ( |
Gets the logger for the specified type.
|
|
IsListenerRegistered ( ILogListener listener ) : bool |
Determines whether the specified listener is already registered or not.
|
|
LoadListenersFromConfiguration ( |
Loads the listeners from the specified configuration.
|
|
LoadListenersFromConfigurationFile ( string configurationFilePath, |
Loads the listeners from the specified configuration file.
|
|
RemoveListener ( ILogListener listener ) : void |
Removes the a log listener which will stop receiving all log events.
|
Method | Description | |
---|---|---|
FlushAllAsync ( ) : System.Threading.Tasks.Task | ||
GetCurrentClassLogger ( ) : ILog | ||
GetThreadSafeLogListeners ( ) : List |
Gets the current log listeners in a thread-safe manner.
|
|
IsListenerInterested ( ILogListener listener, LogEvent logEvent ) : bool |
Determines whether the specified listener is interested in the log event.
|
|
LogManager ( ) : System |
Initializes static members of the LogManager class.
|
|
OnLogMessage ( object sender, |
Called when one of the logs has written a log message.
|
public static AddDebugListener ( bool ignoreCatelLogging = false ) : ILogListener | ||
ignoreCatelLogging | bool | |
return | ILogListener |
public static AddListener ( ILogListener listener ) : void | ||
listener | ILogListener | The listener. |
return | void |
public static GetLogger ( |
||
type | The type. | |
return | ILog |
public static IsListenerRegistered ( ILogListener listener ) : bool | ||
listener | ILogListener | The listener. |
return | bool |
public static LoadListenersFromConfiguration ( |
||
configuration | The configuration. | |
assembly | The assembly to determine product info. If |
|
return | void |
public static LoadListenersFromConfigurationFile ( string configurationFilePath, |
||
configurationFilePath | string | The configuration file path. |
assembly | The assembly to determine product info. If |
|
return | void |
public static RemoveListener ( ILogListener listener ) : void | ||
listener | ILogListener | The listener. |
return | void |