|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.javagroups.log.Tracer | +--org.javagroups.log.WriterTracer
Provides output to a Writer
. All methods defined
here have permissions that are either protected or package.
Field Summary | |
protected java.io.Writer |
out
|
Fields inherited from class org.javagroups.log.Tracer |
autoFlush, closed, level, module, timestampFormat |
Method Summary | |
protected void |
doClose()
Flushes any pending output (by calling flush ) and closes
the output file, stream, writer, or socket associated with this tracer. |
protected void |
doFlush()
Flushes any pending output. |
protected void |
doPrint(java.lang.String message)
Sends the already-formatted message to the output file,
stream, writer, or socket associated with this tracer. |
Methods inherited from class org.javagroups.log.Tracer |
close, flush, getAutoFlush, getLevel, getModule, logString, logString, print, print, setAutoFlush, setLevel, setTimestampFormat, timestamp |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected java.io.Writer out
Method Detail |
protected void doPrint(java.lang.String message)
message
to the output file,
stream, writer, or socket associated with this tracer.
In case of an IO exception an error message is printed to the System.err streamdoPrint
in class Tracer
message
- a formatted stringprotected void doFlush()
flush
, but only
if not alread closed.
This call flushes the output stream of the socket
ie. socket.getOutputStream().flush()
In case of an IO error, an error message is sent to System.errdoFlush
in class Tracer
protected void doClose()
flush
) and closes
the output file, stream, writer, or socket associated with this tracer.
Called from close
, but only if not alread closed.
After closed has been called, all calls to print
,
flush
, and close
are ignored.
In case of an IO error, an error message is sent to System.err
doClose
in class Tracer
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |