|
jPOS 1.6.7 API Documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jpos.util.SimpleLogListener
org.jpos.util.RotateLogListener
org.jpos.util.DailyLogListener
public class DailyLogListener
Rotates log daily and compress the prevoius log.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.jpos.util.RotateLogListener |
|---|
RotateLogListener.Rotate |
| Field Summary |
|---|
| Fields inherited from class org.jpos.util.RotateLogListener |
|---|
CHECK_INTERVAL, DEFAULT_MAXSIZE |
| Constructor Summary | |
|---|---|
DailyLogListener()
Creates a new instance of DailyLogListener |
|
| Method Summary | |
|---|---|
java.lang.String |
getCompressedSuffix()
Getter for property compressedExt. |
int |
getCompressionBufferSize()
Getter for property compressionBufferSize. |
int |
getCompressionFormat()
Getter for property compressionFormat. |
java.text.DateFormat |
getDateFmt()
Getter for property dateFmt. |
java.lang.String |
getLastDate()
Getter for property lastDate. |
java.lang.String |
getPrefix()
Getter for property prefix. |
int |
getRotateCount()
Getter for property rotateCount. |
java.lang.String |
getSuffix()
Getter for property suffix. |
void |
logRotate()
|
void |
setCompressedSuffix(java.lang.String compressedSuffix)
Setter for property compressedExt. |
void |
setCompressionBufferSize(int compressionBufferSize)
Setter for property compressionBufferSize. |
void |
setCompressionFormat(int compressionFormat)
Setter for property compressionFormat. |
void |
setConfiguration(Configuration cfg)
Configure this RotateLogListener Properties: file base log filename [window] in seconds (default 0 - never rotate) [count] number of copies (default 0 == single copy) [maxsize] max log size in bytes (aprox) |
void |
setDateFmt(java.text.DateFormat dateFmt)
Setter for property dateFmt. |
void |
setLastDate(java.lang.String lastDate)
Setter for property lastDate. |
void |
setPrefix(java.lang.String prefix)
Setter for property prefix. |
void |
setRotateCount(int rotateCount)
Setter for property rotateCount. |
void |
setSuffix(java.lang.String suffix)
Setter for property suffix. |
| Methods inherited from class org.jpos.util.RotateLogListener |
|---|
destroy, log |
| Methods inherited from class org.jpos.util.SimpleLogListener |
|---|
close, setPrintStream |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DailyLogListener()
| Method Detail |
|---|
public void setConfiguration(Configuration cfg)
throws ConfigurationException
RotateLogListener
setConfiguration in interface ConfigurablesetConfiguration in class RotateLogListenercfg - Configuration
ConfigurationException
public void logRotate()
throws java.io.IOException
logRotate in class RotateLogListenerjava.io.IOExceptionpublic java.lang.String getSuffix()
public void setSuffix(java.lang.String suffix)
suffix - New value of property suffix.public java.lang.String getPrefix()
public void setPrefix(java.lang.String prefix)
prefix - New value of property prefix.public int getRotateCount()
public void setRotateCount(int rotateCount)
rotateCount - New value of property rotateCount.public java.text.DateFormat getDateFmt()
public void setDateFmt(java.text.DateFormat dateFmt)
dateFmt - New value of property dateFmt.public java.lang.String getLastDate()
public void setLastDate(java.lang.String lastDate)
lastDate - New value of property lastDate.public java.lang.String getCompressedSuffix()
public void setCompressedSuffix(java.lang.String compressedSuffix)
compressedExt - New value of property compressedExt.public int getCompressionFormat()
public void setCompressionFormat(int compressionFormat)
compressionFormat - New value of property compressionFormat.public int getCompressionBufferSize()
public void setCompressionBufferSize(int compressionBufferSize)
compressionBufferSize - New value of property compressionBufferSize.
|
jPOS.org | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||