|
qflib 0.98.1 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
A LogWriter is responsible for the final dispatch of LogEntries after they have passed through the chain of LogFilters. Possible uses are printing entries to System.err or some other
stream or sending them via RMI to the LogServer qflog.
A LogWriter can also be combined with a LogUser to extract
and distribute LogEntries directly from the filter chain. Thus filtering is
decoupled from distribution.
Log.setLogWriter(de.qfs.lib.log.LogWriter),
LevelFilter| Method Summary | |
void |
close()
Close the LogWriter and free its resources, e.g. open Streams. |
LogFormat |
getFormat()
Get the format the LogWriter uses to format LogEntries. |
void |
setFormat(LogFormat format)
Set the format the LogWriter should use to format LogEntries. |
void |
write(LogEntry entry)
Write one LogEntry. |
void |
write(LogEntry[] entries)
Write an array of LogEntires in one go. |
| Method Detail |
public void write(LogEntry entry)
entry - The entry to write.public void write(LogEntry[] entries)
write(LogEntry), since the difference in performance can be enourmous
(e.g. when using RMI).entries - The entries to write.public void close()
public void setFormat(LogFormat format)
format - The format to use.public LogFormat getFormat()
|
qflib 0.98.1 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||