coldbox.system.logging.util

Class FileRotator

lucee.Component
    extended by coldbox.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

Class Attributes:
  • synchronized : false
  •  
  • accessors : true
  •  
  • persistent : false
  •  
    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

    init

    public init()

    Constructor


    Method Detail

    checkRotation

    public FileRotator checkRotation(any 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 numeric getFileSize(any fileName, [any sizeFormat='bytes'])

    Get the filesize of a file.

    Parameters:
    fileName - The target file
    sizeFormat - Available formats: [bytes][kbytes][mbytes][gbytes]