public class PrintStreamMessageLogger extends java.lang.Object implements MessageLogger
A class to write log and status messages to a PrintStream
such as System.err
.
Modifier and Type | Field and Description |
---|---|
protected java.io.PrintStream |
printStream |
Constructor and Description |
---|
PrintStreamMessageLogger(java.io.PrintStream printStream) |
Modifier and Type | Method and 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.
|
public PrintStreamMessageLogger(java.io.PrintStream printStream)
public void send(java.lang.String message)
MessageLogger
Append the supplied text to the log.
send
in interface MessageLogger
message
- the (possibly multi-line) text to append to the logpublic void sendLn(java.lang.String message)
MessageLogger
Append the supplied text to the log, followed by a new line.
sendLn
in interface MessageLogger
message
- the (possibly multi-line) text to append to the log