Methods Summary |
---|
public java.lang.String | getLogFile(java.lang.String key, java.lang.String fileName)The entire specified log file is read, converted into a String, and returned.
The resulting String may be quite large.
The only legal key supported is {@link #SERVER_KEY}.
|
public java.lang.String[] | getLogFileKeys()Keys which may be used to specify which log file to access.
Legal values include:
- {@link #SERVER_KEY}
- {@link #ACCESS_KEY} is not supported
|
public java.lang.String[] | getLogFileNames(java.lang.String key)The names returned are not full paths but the simple file
names of the log files.
The last name in the resulting String[] will always be that of the
current log file. In other words if the String[] las length 3,
then result[2] will be the name of the current log file.
Note that it is possible for log file rotation to occur after making
this call, thus rendering the list incomplete.
The resulting names may be passed to {@link #getLogFile} to retrieve
the contents.
The only legal key supported is {@link #SERVER_KEY}.
|
public void | rotateAllLogFiles()Rotate all log files as soon as possible. May return
prior to the rotation occuring.
|
public void | rotateLogFile(java.lang.String key)Rotate the log file of the specified type. Legal values are those
returned by {@link #getLogFileKeys}.
Legal values include:
- {@link #SERVER_KEY}
- {@link #ACCESS_KEY} is not supported
|