_manager, _write, FLUSH_INTERVAL| Constructor and Description |
|---|
FileLogWriter(LogManager manager) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
closeWriter() |
String |
currentFile()
File may not exist or have old logs in it if not opened yet
|
protected void |
flushWriter() |
protected void |
writeRecord(int priority,
String val)
Write a single String verbatim to the writer.
|
protected void |
writeRecord(LogRecord rec,
String formatted)
Write the provided LogRecord to the writer.
|
flushRecords, flushRecords, run, setFlushInterval, stopWritingpublic FileLogWriter(LogManager manager)
public String currentFile()
currentFile in class LogWriterprotected void writeRecord(LogRecord rec, String formatted)
LogWriterwriteRecord in class LogWriterrec - the LogRecord to write.formatted - a String pre-formatted from rec, may be ignored.protected void writeRecord(int priority,
String val)
LogWriterwriteRecord in class LogWriterpriority - the level to log the line at.val - the String to write.protected void flushWriter()
flushWriter in class LogWriterprotected void closeWriter()
closeWriter in class LogWriter