Getting Started column, "Create Random Access Log Files," by Billy Hollis
Visual Studio Magazine, June 2002

The code for logging messages is in the LogSubs.bas, and for 
convenience, this is included in the LogView project. The 
project features a form with a grid, and the logic to load 
log messages into the grid.

The project does not include filtering and sorting logic, but
this is easy to add. For filtering, a comment in the code
indicates where the logic would go to implement a filter. For sorting
it is probably easiest to use the built-in sorting capabilities of the
grid control itself. See the grid control documentation for more
details.