Console: Add jsps to view entire router.log and wrapper.log files

Add links to /logs
Add some headers to the history.txt jsp
javadocs
This commit is contained in:
zzz
2016-08-21 20:21:50 +00:00
parent b0789d45f3
commit afa5a193a7
9 changed files with 121 additions and 5 deletions

View File

@ -37,6 +37,7 @@ class FileLogWriter extends LogWriter {
/**
* File may not exist or have old logs in it if not opened yet
* @return non-null
*/
public synchronized String currentFile() {
if (_currentFile != null)

View File

@ -264,6 +264,10 @@ public class LogManager implements Flushable {
loadConfig();
}
/**
* File may not exist or have old logs in it if not opened yet
* @return non-null
*/
public String currentFile() {
if (_writer == null)
return ("No log file created yet");

View File

@ -37,7 +37,12 @@ abstract class LogWriter implements Runnable {
_lastReadConfig = Clock.getInstance().now();
}
/**
* File may not exist or have old logs in it if not opened yet
* @return non-null
*/
public abstract String currentFile();
/**
* Write the provided LogRecord to the writer.
* @param rec the LogRecord to write.