Package com.pixelmed.utils
Class PrintStreamMessageLogger
- java.lang.Object
-
- com.pixelmed.utils.PrintStreamMessageLogger
-
- All Implemented Interfaces:
MessageLogger
public class PrintStreamMessageLogger extends java.lang.Object implements MessageLogger
A class to write log and status messages to a
PrintStream
such asSystem.err
.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.io.PrintStream
printStream
-
Constructor Summary
Constructors Constructor Description PrintStreamMessageLogger(java.io.PrintStream printStream)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
send(java.lang.String message)
Append the supplied text to the log.void
sendLn(java.lang.String message)
Append the supplied text to the log, followed by a new line.
-
-
-
Method Detail
-
send
public void send(java.lang.String message)
Description copied from interface:MessageLogger
Append the supplied text to the log.
- Specified by:
send
in interfaceMessageLogger
- Parameters:
message
- the (possibly multi-line) text to append to the log
-
sendLn
public void sendLn(java.lang.String message)
Description copied from interface:MessageLogger
Append the supplied text to the log, followed by a new line.
- Specified by:
sendLn
in interfaceMessageLogger
- Parameters:
message
- the (possibly multi-line) text to append to the log
-
-