java.lang.Objectcom.realtime.crossfire.jxclient.util.DebugWriter
public class DebugWriter
Writer debug information to a log file.
| Field Summary | |
|---|---|
private java.text.DateFormat |
simpleDateFormat
A formatter for timestamps. |
private java.lang.Object |
sync
The object for synchronizing messages. |
private java.io.Writer |
writer
The Writer to write to. |
| Constructor Summary | |
|---|---|
DebugWriter(java.io.Writer writer)
Creates a new instance. |
|
| Method Summary | |
|---|---|
void |
debugProtocolWrite(java.lang.CharSequence str)
Writes a message to the debug protocol. |
void |
debugProtocolWrite(java.lang.CharSequence str,
java.lang.Throwable throwable)
Writes a message to the debug protocol including a throwable. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
@NotNull private final java.text.DateFormat simpleDateFormat
@NotNull private final java.lang.Object sync
@NotNull private final java.io.Writer writer
Writer to write to.
| Constructor Detail |
|---|
public DebugWriter(@NotNull
java.io.Writer writer)
writer - the writer to write to| Method Detail |
|---|
public void debugProtocolWrite(@NotNull
java.lang.CharSequence str)
str - the message to write
public void debugProtocolWrite(@NotNull
java.lang.CharSequence str,
@NotNull
java.lang.Throwable throwable)
str - the message to writethrowable - the throwable to log