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

In This Topic
    MessageAlert Event (Log)
    In This Topic
    Raised to alert subscribers to any Warning, Error, or Critical log messages, with optional throttling.
    Syntax
    'Declaration
     
    
    Public Event MessageAlert As Log.MessageAlertEventHandler
    public event Log.MessageAlertEventHandler MessageAlert
    Event Data

    The event handler receives an argument of type LogMessageAlertEventArgs containing data related to this event. The following LogMessageAlertEventArgs 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.  
    A minimum length of time to wait until another notification may be issued, requested by the client upon return.  
    Set to automatically send the latest information on the current session when the event returns.  
    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 can be raised after a log message of Warning, Error, or Critical severity has been committed. This allows the client to take action such as to set the SendSessionsOnExit flag or request that the active session be sent immediately. Setting the MinimumDelay property in the event args will specify a minimum time before the event may be raised again (only the last value set by any subscriber takes effect). 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. A number of handy read-only properties provide quick summaries for simple filtering (e.g. if the client only cares about Error and Critical messages, not Warnings).
    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