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) |
public PrintStreamMessageLogger(java.io.PrintStream printStream)
public void send(java.lang.String message)
MessageLoggerAppend the supplied text to the log.
send in interface MessageLoggermessage - the (possibly multi-line) text to append to the logpublic void sendLn(java.lang.String message)
MessageLoggerAppend the supplied text to the log, followed by a new line.
sendLn in interface MessageLoggermessage - the (possibly multi-line) text to append to the log