ColdBox Platform Version 3.7.0

coldbox.system.logging.util
Class FileRotator

WEB-INF.cftags.component
        extended by coldbox.system.logging.util.FileRotator

public class FileRotator
extends WEB-INF.cftags.component

This is a simple file rotator


Constructor Summary
init()
          Constructor
 
Method Summary
 void checkRotation(AbstractAppender appender='')
          Checks the log file size
 string getFileSize(string filename, [string sizeFormat='bytes'])
          Get the filesize of a file
 
Methods inherited from class WEB-INF.cftags.component
 

Constructor Detail

init

public init()
Constructor

Method Detail

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