|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.basex.server.Log
public final class Log
This class writes daily log files to disk. The log format has been updated in Version 7.4; it now has the following columns:
xs:time
)
Field Summary | |
---|---|
static java.lang.String |
ERROR
ERROR string. |
static java.lang.String |
REQUEST
REQUEST string. |
static java.lang.String |
SERVER
SERVER string. |
Constructor Summary | |
---|---|
Log(Context ctx)
Constructor. |
Method Summary | |
---|---|
void |
close()
Closes the log file. |
IOFile |
dir()
Returns a reference to the log directory. |
IOFile[] |
files()
Returns all log files. |
void |
write(java.lang.Object... str)
Writes an entry to the log file. |
void |
writeError(java.lang.Throwable th)
Writes an error to the log file. |
void |
writeServer(java.lang.Object... str)
Writes a server entry to the log file. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String SERVER
public static final java.lang.String ERROR
public static final java.lang.String REQUEST
Constructor Detail |
---|
public Log(Context ctx)
ctx
- database contextMethod Detail |
---|
public void writeError(java.lang.Throwable th)
th
- throwablepublic void writeServer(java.lang.Object... str)
str
- strings to be writtenpublic void write(java.lang.Object... str)
str
- strings to be writtenpublic void close()
public IOFile dir()
public IOFile[] files()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |