Filters

Filters can be defined per view, for example you can choose File -> New View, and the filter dialog will popup. Pressing OK will open a new view without any filters.

filterdialog

Filter Types

All filters support regular expressions, if you are not familliar with regular expressions you can
just type any word or part of a word to match.

  • Include: ??? see highlight?
  • Exclude: Lines containing a matching expression will be excluded from the view
  • Highlight: Lines containing a matching expression will be highlighted using the specified foreground and background colors
  • Token: Only the matching expression will be highlighted using the specified foreground and background colors
  • Track: Lines containing a matching expression will be focused and centered if possible. Note: auto scroll turns off if a track filter is matched
  • Stop: If a matching expression is found autoscroll is turned off, all track filters will be disabled and the line is focused. Note: stop filters work only of autoscroll is on, think of a stop-filter as a one-shot track filter
  • Ignore: Lines containing a matching expression will be ignored by the auto scroll feature.

Practical Uses

Exclude and Highlight filters are the most intuitive filters to use. Track, stop and ignore can be a little confusing, let me try to give examples of all filters.

Track: use this filter to focus interesting lines that do not occur very often, but at a regular interval, for example, so you are monitoring a process that logs output every 30 seconds and you need to check the result.

Stop: this filter is good when some special event occurs (an exception?) and you want to inspect the context of the event in the log before continuing. A press of the ‘end’ button will resume auto scrolling.

Ignore: this filter is useful if you want to have auto scoll on, but some high frequeny messages are annoying you, but you cannot exclude them because they help you diagnose your problem when it occurs.

In this last case you can consider a different approach:

Use two views, one where the diagnostic messages are filtered and autoscroll is on, and one where the messages are included (and maybe highlighted), next turn on the ‘Link Views’ feature.

Advertisements

One thought on “Filters

  1. jinming.lee

    nice work!
    I know there is a way to add filter by process Name.
    But,how to add a pid filter? there can be number of processes with the same name

    Reply

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s