|
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.protomatter.syslog.BasicLogger | +--com.protomatter.syslog.FileLog
A logger that simply writes to a file.
XML configuration class
Fields inherited from class com.protomatter.syslog.BasicLogger |
formatter, policy, realPolicy |
Constructor Summary | |
FileLog()
You will need to call the configure() method if you use this constructor. |
|
FileLog(java.io.File f)
Create a new file log attached to the given file. |
|
FileLog(java.io.File f,
boolean append,
boolean autoFlush)
Create a new file log attached to the given file. |
Method Summary | |
void |
flush()
Flush the given logger's output. |
boolean |
getAppend()
Get the file we're writing to. |
boolean |
getAutoFlush()
Determine if we should we auto-flush the buffer all the time. |
java.io.File |
getFile()
Get the file we're writing to. |
void |
log(SyslogMessage message)
Log a message. |
void |
setAppend(boolean append)
Set the file we're writing to. |
void |
setAutoFlush(boolean flush)
Should we auto-flush the buffer all the time? |
void |
setFile(java.io.File f)
Set the file we're writing to. |
void |
shutdown()
Closes down the file and prepares for shutdown. |
Methods inherited from class com.protomatter.syslog.BasicLogger |
formatLogEntry, getName, getPolicy, getTextFormatter, isSuspended, mightLog, resetDateFormat, resume, setName, setPolicy, setTextFormatter, shouldLog, suspend |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public FileLog(java.io.File f)
public FileLog(java.io.File f, boolean append, boolean autoFlush)
public FileLog()
Method Detail |
public void setFile(java.io.File f)
public java.io.File getFile()
public void setAppend(boolean append)
public boolean getAppend()
public void setAutoFlush(boolean flush)
public boolean getAutoFlush()
public final void log(SyslogMessage message)
public void shutdown()
public void flush()
Syslogger
|
Protomatter Classes v1.1.6 Copyright 1998-2001 Nate Sammons |
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Protomatter Classes v1.1.6 | http://protomatter.sourceforge.net/1.1.6 |