Loupe - Log - Monitor - Resolve
Gibraltar.Agent Namespace / Log Class / MessagePublished Event

In This Topic
    MessagePublished Event
    In This Topic
    Raised to publish log messages as they are committed
    Syntax
    '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.

    PropertyDescription
    The number of Critical log messages included in this notification event.  
    The number of Error log messages included in this notification event.  
    The number of log messages which have an attached Exception included in this notification event.  
    The set of one or more log messages for this notification event in a read-only collection.  
    The strongest log message severity included in this notification event.  
    The total number of log messages included in this notification event.  
    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