If this event is set then all logging events are directed to the event as well as the loggers.
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. |
If it is desired to only send logging to the log system subscribing to this event, the CurrentLevel should be set to OFF.