Our Sites
Categories
- Business (35)
- DelphiFeeds.com (94)
- General (43)
- Gurock Software (125)
- Programming (44)
- SmartInspect (132)
- Software Quality (6)
- TestRail (38)
- Virtualization (8)
- Websites (26)
Archives
SmartInspect Pages Cloud
delphi unicode asp.net monitoring debug java debugging log4j logging trace delphi tracing asp.net exceptions errors debug .net debugging log4net log4n .net monitoring debug java debugging vb.net logging trace java tracing java exceptions errors delphi monitoring delphi debugging trace .net tracing delphi exceptions errors nlog asp.net logging tracing eurekalogTestRail Pages Cloud



Introducing the SmartInspect filter event
In contrast to the previous SmartInspect releases, I’d like to introduce some of the features for the upcoming release directly after implementing them rather than writing a cumulative preview one or two weeks before the actual release.
Let’s begin with a cool new feature of the SmartInspect libraries – the filter event. In contrast to the other events in the SmartInspect libraries, the filter event is fired before a packet is being logged. This means, with the filter event you can now influence the logging behavior in a way that was not possible with earlier SmartInspect versions. Its intended primary usage is canceling the logging of packets based on certain conditions, hence the name ‘filter’ event. I think this is best explained with an example:
As you can see, the usage of the filter event is pretty straightforward. The event handlers receive a FilterEventArgs argument which provides the packet that is about to be logged and offers the possibility of filtering it out. In the example, we filter out or cancel all packets which are of type LogEntry and have a title of “Cancel Me”. The filter event is a simple, yet powerful way to filter out packets.