|
|
|||||||||||
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.LengthRolloverLog
An implementation of an object that will log things using the Syslog facility, and roll it's log files after a certain number of bytes have been written to them.
XML configuration class
Fields inherited from class com.protomatter.syslog.BasicLogger |
formatter, policy, realPolicy |
Constructor Summary | |
LengthRolloverLog()
You will need to call the configure() method to configure this logger if you use this constructor. |
|
LengthRolloverLog(java.lang.String basename,
java.lang.String extension,
int roll,
boolean append,
boolean autoFlush)
Write log information to the given log, roll when specified. |
Method Summary | |
void |
flush()
Flush the given logger's output. |
boolean |
getAppend()
Get the append-to-file flag. |
boolean |
getAutoFlush()
Get the auto-flush flag. |
java.lang.String |
getBasename()
Get the base file name. |
java.lang.String |
getExtension()
Get the file extension. |
int |
getRollLength()
Get the max file size (in bytes). |
void |
log(SyslogMessage message)
Log an entry to the log. |
void |
rollover()
Roll the logs now. |
void |
setAppend(boolean append)
Set the append-to-file flag. |
void |
setAutoFlush(boolean autoFlush)
Set the auto-flush flag. |
void |
setBasename(java.lang.String basename)
Set the base file name. |
void |
setExtension(java.lang.String extension)
Set the file extension. |
void |
setRollLength(int rolllength)
Set the max file size (in bytes). |
void |
shutdown()
Shutdown this logger. |
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 LengthRolloverLog(java.lang.String basename, java.lang.String extension, int roll, boolean append, boolean autoFlush)
public LengthRolloverLog()
Method Detail |
public void setRollLength(int rolllength)
public int getRollLength()
public void setBasename(java.lang.String basename)
public java.lang.String getBasename()
public void setExtension(java.lang.String extension)
public java.lang.String getExtension()
public void setAppend(boolean append)
public boolean getAppend()
public void setAutoFlush(boolean autoFlush)
public boolean getAutoFlush()
public void rollover()
public final void log(SyslogMessage message)
Syslogger
public void flush()
Syslogger
public void shutdown()
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 |