org.lsst.ccs.utilities.tracers
Interface Tracer.Strategy

All Known Implementing Classes:
Tracer.MultiReporter
Enclosing class:
Tracer

public static interface Tracer.Strategy

defines the behaviour of a tracer. Implementations can forward traces to a Logger for instance.


Method Summary
 void addReportLine(String line)
          long reports that span many lines (such as stackTraces) may have intermediate calls to addReportLine before a call to endReport
 void endReport()
          marks the end of a trace (this can be used with implementations that use parenthesized expressions -such as XML-).
 void report(String report)
          starts a trace and reports a String.
 

Method Detail

report

void report(String report)
starts a trace and reports a String. Each "report" (mostly one line reports) is terminated by a call to endReport

Parameters:
report -

addReportLine

void addReportLine(String line)
long reports that span many lines (such as stackTraces) may have intermediate calls to addReportLine before a call to endReport

Parameters:
line -

endReport

void endReport()
marks the end of a trace (this can be used with implementations that use parenthesized expressions -such as XML-). it is guaranteed that each call to report is closed by a call to endReport (in the meantime many invocations to addReportLine may have been fired).



Copyright © 2013 LSST. All Rights Reserved.