Loupe - Log - Monitor - Resolve
Gibraltar.Agent.Windows Namespace / LiveLogViewer Class / MessageFilter Event

In This Topic
    MessageFilter Event
    In This Topic
    Raised whenever this LiveLogViewer receives a new log message, allowing the client to block it from being included for display to users.
    Syntax
    'Declaration
     
    
    Public Event MessageFilter As Log.MessageFilterEventHandler
    public event Log.MessageFilterEventHandler MessageFilter
    Event Data

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

    PropertyDescription
    Cancel (block) this message from being displayed to users by the (LiveLogViewer) sender of this event.  
    A new log message received for possible display by the (LiveLogViewer) sender of this event.  
    Remarks

    Each LiveLogViewer instance filters independently with its own event. To filter the main Loupe Live Viewer (raised via hotkey unless disabled), see the Log.LiveViewerMessageFilter event.

    The Message property of the event args provides the log message in consideration, and the Cancel property allows the message to be displayed (false, the default) or blocked (true). The sender parameter of the event will identify the specific LiveLogViewer instance.

    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