public class PrintStreamMessageLogger extends 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 PrintStream |
printStream |
| Constructor and Description |
|---|
PrintStreamMessageLogger(PrintStream printStream) |
| Modifier and Type | Method and Description |
|---|---|
void |
send(String message)
Append the supplied text to the log.
|
void |
sendLn(String message)
Append the supplied text to the log, followed by a new line.
|
protected PrintStream printStream
public PrintStreamMessageLogger(PrintStream printStream)
public void send(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(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