An NDoc Documented Class Library

Logger.LogMessageReceived Event

If this event is set then all logging events are directed to the event as well as the loggers.

public static event LogMessageHandler LogMessageReceived;

Event Data

The event handler receives an argument of type LogMessageEventArgs containing data related to this event. The following LogMessageEventArgs properties provide information specific to this event.

Property Description
Arguments The array of variable arguments.
Exception An exception if it exists (passed in as the first in the argument list).
FormattedText The formatted message text, constructed from the arguments and using the Text as a formatting string.
LoggerName Returns the name of the logger for this message
LogLevel Returns the level of this message
Text The message text.

Remarks

If it is desired to only send logging to the log system subscribing to this event, the CurrentLevel should be set to OFF.

See Also

Logger Class | EnterpriseDT.Util.Debug Namespace