lucee.Component logbox.system.logging.util.FileRotator
Copyright Since 2005 ColdBox Framework by Luis Majano and Ortus Solutions, Corp www.ortussolutions.com --- This utility object takes care of file log rotation
Constructor Summary | |
---|---|
init()
Constructor. |
Method Summary | |
---|---|
FileRotator
|
checkRotation(any appender)
Checks the log file size. |
numeric
|
getFileSize(any fileName, [any sizeFormat='bytes'])
Get the filesize of a file. |
Methods inherited from class lucee.Component |
---|
None |
Constructor Detail |
---|
Constructor
Method Detail |
---|
Checks the log file size. If greater than framework's settings, then zip and rotate.
appender
- The appender to rotate withGet the filesize of a file.
fileName
- The target filesizeFormat
- Available formats: [bytes][kbytes][mbytes][gbytes]