modnlp.util
public class LogStream extends java.io.PrintWriter
| Modifier and Type | Field and Description |
|---|---|
boolean |
debugOn
If
true print debug messager to System.err |
java.util.Date |
startDate |
| Constructor and Description |
|---|
LogStream(java.io.PrintStream ps) |
LogStream(java.lang.String fname)
Create a new file and record server startup time
|
| Modifier and Type | Method and Description |
|---|---|
void |
dbgMsg(java.lang.Object msg) |
void |
dbgMsg(java.lang.Object msg,
java.lang.Exception e) |
void |
logMsg(java.lang.Object msg)
Write
msg into this logfile and
print msg to stderr id debugOn |
void |
logMsg(java.lang.Object msg,
java.lang.Exception e)
Write
msg into this logfile and
print msg to stderr id debugOn |
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, writepublic boolean debugOn
true print debug messager to System.errpublic java.util.Date startDate
public LogStream(java.lang.String fname)
throws java.io.IOException
fname - name (full path) of the log filejava.io.IOException - if IO error occurredpublic LogStream(java.io.PrintStream ps)
throws java.io.IOException
java.io.IOExceptionpublic void logMsg(java.lang.Object msg)
msg into this logfile and
print msg to stderr id debugOnpublic void logMsg(java.lang.Object msg,
java.lang.Exception e)
msg into this logfile and
print msg to stderr id debugOnpublic void dbgMsg(java.lang.Object msg)
public void dbgMsg(java.lang.Object msg,
java.lang.Exception e)