VERIFIED SOLUTION i

How to use the Log Viewer to filter log files in Portrait Foundation

The Portrait Log Viewer can be used to view both Portrait log files and Windows Event Log files.

When opening these files, however, there can often be a very large number of output rows meaning the important data is mixed in amongst the 'everyday' information and trace messages.

Filtering can be done in several ways. Firstly, the Edit menu has Include and Exclude options that allow the user to reduce the displayed rows.

This can be time consuming, so there is a second quicker approach that uses the context-sensitive right-click pop-up menu:
 

User-added image
 
(Note that not all of these options are always available as they depend upon the cell contents where the user right-clicked their mouse.)

The following explains the options:
  • Copy selection - Copies all selected rows of data.
  • Copy selected column values (not shown above) - if multiple rows are selected, the user can copy all selected data in a specific column.
  • Copy cell - Copies just the text in the specific cell that was clicked.
  • Go to next matching entry - If available, it moves the selected row to be the next row that exactly matches the text in the currently selected cell.
  • Go to previous matching entry - If available, it moves the selected row to be the previous row that exactly matches the text in the currently selected cell.
  • Hide all rows with this text - Hides all rows in the log where the text is the same as the currently selected cell.
  • Show all rows with this text - Hides all rows in the log except where the text is the same as the currently selected cell.
  • Show all rows - Only visible after one or more rows have been hidden using one of the above two options, this will reset the log to show all rows.
  • Open as XML in Visual Studio - If the text in the selected cell contains both a '<' and a '>' sign, and Microsoft Visual Studio is installed, then the text in the cell will be loaded into Visual Studio and rendered as XML. This is very useful when trying to interpret the contents on a long XML text string, as Visual Studio will automatically format the XML.
UPDATED:  April 28, 2017