_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, stopWriting
public FileLogWriter(LogManager manager)
public String currentFile()
currentFile
in class LogWriter
protected void writeRecord(LogRecord rec, String formatted)
LogWriter
writeRecord
in class LogWriter
rec
- the LogRecord to write.formatted
- a String pre-formatted from rec, may be ignored.protected void writeRecord(int priority, String val)
LogWriter
writeRecord
in class LogWriter
priority
- the level to log the line at.val
- the String to write.protected void flushWriter()
flushWriter
in class LogWriter
protected void closeWriter()
closeWriter
in class LogWriter