public class LogMessage extends PrintWriter
PrintWriter
to
inherit all sort of useful print
methods and adds another
print
method to write a stack trace into the log
message.Modifier and Type | Field and Description |
---|---|
static String |
NEW_LINE
The new line sequence.
|
out
Constructor and Description |
---|
LogMessage()
Creates a new empty message.
|
LogMessage(String msg,
Throwable t)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
void |
print(Throwable t)
Writes a stack trace into this log message.
|
String |
toString()
Returns the current content of the message.
|
append, append, append, checkError, clearError, close, flush, format, format, print, print, print, print, print, print, print, print, print, printf, printf, println, println, println, println, println, println, println, println, println, println, setError, write, write, write, write, write
public static final String NEW_LINE
public void print(Throwable t)
t
- The exception.
Version: 5.3.5-ice35-b73
Copyright © 2017 The University of Dundee & Open Microscopy Environment. All Rights Reserved.