|
ColdBox Platform Version 3.7.0
|
FRAMES
|
coldbox.system.logging.util
Class
FileRotator
WEB-INF.cftags.component
coldbox.system.logging.util.FileRotator
-
public class FileRotator
- extends WEB-INF.cftags.component
This is a simple file rotator
Constructor Summary |
init()
Constructor
|
Methods inherited from class WEB-INF.cftags.component |
|
init
public init()
-
Constructor
checkRotation
public void checkRotation(AbstractAppender appender='')
-
Checks the log file size. If greater than framework's settings, then zip and rotate.
- Parameters:
appender
- The appender to rotate with
getFileSize
public string getFileSize(string filename, [string sizeFormat='bytes'])
-
Get the filesize of a file.
- Parameters:
filename
sizeFormat
- Available formats: [bytes][kbytes][mbytes][gbytes]
|
ColdBox Platform Version 3.7.0
|
FRAMES
|