'Declaration
Public Event MessagePublished As Log.MessageEventHandler
public event Log.MessageEventHandler MessagePublished
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 |
---|---|
CriticalCount | The number of Critical log messages included in this notification event. |
ErrorCount | The number of Error log messages included in this notification event. |
ExceptionCount | The number of log messages which have an attached Exception included in this notification event. |
Messages | The set of one or more log messages for this notification event in a read-only collection. |
TopSeverity | The strongest log message severity included in this notification event. |
TotalCount | The total number of log messages included in this notification event. |
WarningCount | The number of Warning log messages included in this notification event. |
Remarks
This event is raised after a log message is committed. Any new qualifying log messages received during a required wait period will be queued and included as a batch in the next event, unless there is an excessive number in which case later ones will be ignored.
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
See Also