autotest/autotest — pull request #143 by dgrnbrg (2012-01-17 15:43:11+00:00)
Title: Added a logger that can sort lines of log into different priorities base...

This is useful for testing systems that already have error levels hardcoded in their output. The software I am testing sends all its output to stderr, and uses different prefixes like (ERROR), (WARN), (INFO), and (DEBUG) to denote what kind of message the line corresponds to. This patch adds a SortingFileLogger that extends FileLogger to allow for sorting the output lines based on a set of regexes--it's designed to be flexible enough to cover every kind of error output that might be encountered, except for systems that include newlines in their error messages (but that's very rare since it's ungreppable).

Also, this enhances LoggingFile to support any logger--no longer hardcoded to the default logger, which is useful when you require additional control of how the logs are stored and transferred.

All changes are backwards compatible.

Signed-off-by: David Greenberg