modnlp.tec.server
public class TecLogFile extends java.io.PrintWriter
TecServer
Modifier and Type | Field and Description |
---|---|
boolean |
debugOn
If
true print debug messager to System.err |
java.util.Date |
startDate |
Constructor and Description |
---|
TecLogFile(java.io.PrintStream ps) |
TecLogFile(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 |
logMsg(java.lang.Object msg)
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, write
public boolean debugOn
true
print debug messager to System.errpublic java.util.Date startDate
public TecLogFile(java.lang.String fname) throws java.io.IOException
fname
- name (full path) of the log filejava.io.IOException
- if IO error occurredpublic TecLogFile(java.io.PrintStream ps) throws java.io.IOException
java.io.IOException