org.baselinetest
Class TestLogger

java.lang.Object
  extended by java.io.Writer
      extended by org.baselinetest.BaselineWriter
          extended by org.baselinetest.TestLogger
All Implemented Interfaces:
java.io.Closeable, java.io.Flushable, java.lang.Appendable

public class TestLogger
extends BaselineWriter

Author:
jwan, jsnyder2

Field Summary
static java.lang.String LOGGER_OUTPUT_PREFIX
          The prefix for log output files.
static java.lang.String LOGGER_OUTPUT_SUFFIX
          The suffix for log output files.
 
Fields inherited from class org.baselinetest.BaselineWriter
BASELINE_OUTPUT_PREFIX, BASELINE_OUTPUT_SUFFIX, DEFAULT_ENCODING
 
Fields inherited from class java.io.Writer
lock
 
Method Summary
 void logThrowable(java.lang.Throwable t)
          Log a throwable to the execution logs.
 void print(java.lang.Object o)
          Override the BaselineWriter implementation to flush the buffer after every print operation.
 void println()
          Override the BaselineWriter implementation to flush the buffer after every println operation.
 void println(java.lang.Object o)
          Override the BaselineWriter implementation to flush the buffer after every println operation.
 
Methods inherited from class org.baselinetest.BaselineWriter
close, flush, print, print, print, print, println, println, println, println, printlnSubstitution, printSubstitution, write
 
Methods inherited from class java.io.Writer
append, append, append, write, write, write, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOGGER_OUTPUT_PREFIX

public static final java.lang.String LOGGER_OUTPUT_PREFIX
The prefix for log output files.

See Also:
Constant Field Values

LOGGER_OUTPUT_SUFFIX

public static final java.lang.String LOGGER_OUTPUT_SUFFIX
The suffix for log output files.

See Also:
Constant Field Values
Method Detail

logThrowable

public void logThrowable(java.lang.Throwable t)
Log a throwable to the execution logs. Throwables are handled as a special case.

Parameters:
t - the throwable to be logged.

println

public void println()
Override the BaselineWriter implementation to flush the buffer after every println operation.

Overrides:
println in class BaselineWriter

print

public void print(java.lang.Object o)
Override the BaselineWriter implementation to flush the buffer after every print operation.

Overrides:
print in class BaselineWriter
Parameters:
o - Object to be printed to the baseline.

println

public void println(java.lang.Object o)
Override the BaselineWriter implementation to flush the buffer after every println operation.

Overrides:
println in class BaselineWriter
Parameters:
o - Object to be printed to the baseline.


Copyright © 2005-2009 Baseline Test. All Rights Reserved.