public class LogHighlighter
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DELIMITER_FAILURE
Delimiter for a failure
|
static java.lang.String |
DELIMITER_PROCEDURE
Delimiter for a procedure
|
static java.lang.String |
DELIMITER_SOURCE
Delimiter for a source file
|
static java.lang.String |
DELIMITER_STDERR
Delimiter for a stderr block
|
static java.lang.String |
DELIMITER_STDOUT
Delimiter for a stdout block
|
static java.lang.String |
ID
CVS ID
|
protected java.io.File |
logFile
Reference to the Log File
|
Constructor and Description |
---|
LogHighlighter(java.io.File logFile)
Create a new highlighter for the given log file.
|
Modifier and Type | Method and Description |
---|---|
int |
highlight(java.io.Writer writer)
Highlight the log file and ouput result to the writer.
|
static void |
main(java.lang.String[] args)
Command line interface, highlight each file and output to stdout.
|
public static final java.lang.String ID
public static final java.lang.String DELIMITER_STDOUT
public static final java.lang.String DELIMITER_STDERR
public static final java.lang.String DELIMITER_PROCEDURE
public static final java.lang.String DELIMITER_SOURCE
public static final java.lang.String DELIMITER_FAILURE
protected java.io.File logFile
public LogHighlighter(java.io.File logFile)
logFile
- Conductor output filepublic int highlight(java.io.Writer writer) throws java.io.IOException
writer
- Outputjava.io.IOException
- Problem parsing log filepublic static void main(java.lang.String[] args) throws java.lang.Exception
args
- List of log filesjava.lang.Exception
- Could not highlight filesCopyright \ (C) Arizona Board of Regents on behalf of the \ Planetary Image Research Laboratory, Lunar and \ Planetary Laboratory at the University of Arizona