Application Log Highlighter


I had to do some performance improvement tasks last week. Executables in my project logs the tick count along with the log entries that contained function names and other information. What I had to do was to check for the functions that take more time and find a way to reduce it. Looking through the differences of tick counts in a huge log seemed very difficult for me. So I decided to make an application that simplifies my work. The output of that task was the Log Highlight Application.  It helps you to easily identify the functions that take time by highlighting them with specified colors. It provides various options that makes user able to use this application for different types of log files.

Highlight Modes

There are two coloring modes for the application: “Contiguous Random Color Highlight mode” and “Conditional Color Highlight mode with Tag”. In the random color mode, When a change in tick count or the time information logged by the application changes in a log entry, the color of the entries changes from that position and remains so until another change happened. Here, the colors used will be a fixed set of readable colors by the application itself. To select this mode, check “Use Random colors without conditions” check box. In the second mode, user can give the color to be used and also mention a tag to to be appended to the log entry based on a certain amount of time difference. Here, only the entry that the change occurred will be marked with the color. To enable this mode, uncheck “Use Random colors without conditions” check box. When unchecked, you can see that some edit boxes and a list control is enabled. Using that controls, user can add different conditions in which the colors and tags are to be added to the log entry. See how the output looks like in both modes, below.

Conditional color mode with tag

Contiguous random color mode


[Contd. See next page]

Tagged , , , , , , , ,

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 )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

Join 216 other followers