'Declaration
Public Event MessageFilter As Log.MessageFilterEventHandler
public event Log.MessageFilterEventHandler MessageFilter
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.
Property | Description |
---|---|
Cancel | Cancel (block) this message from being displayed to users by the (LiveLogViewer) sender of this event. |
Message | A new log message received for possible display by the (LiveLogViewer) sender of this event. |
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.
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