Join 34,000+ subscribers and receive articles from our
blog about software quality, testing, QA and security.

Merging log files, how?


#1

I’m trying to merge two log files,
but am unable to understand how it can be accomplished.

‘Open File’ appears to remove previously loaded log entries.

What I want to do is:

  1. load file A.
  2. import file B without clearing A’s entries.
  3. sort the entries.

is something like this possible?

I’m running a recent 3.2.x ver


#2

This is possible, yes. There’s an option for customizing the reset behavior when loading a log file. It can be found under ‘Tools | Option > Logs and Restore’. Just set the option to ‘Never reset Console’ (or ‘Ask for Console reset’) and the old log entries of file A won’t be removed when loading file B.

Then, to sort the log entries, you can use the ‘File | Sort Log’ dialog.

As a side note, as an alternative to merging the log files in the Console, you can also use the SmartInspect Router service application to let multiple processes log into one combined log file (I assume you are merging log files because you have multiple processes each logging into one log file, is this correct?).