coldbox.system.logging.util

Class FileRotator

railo-context.Component
        extended by coldbox.system.logging.util.FileRotator
Class Attributes:
  • output : false
  •  
  • synchronized : false
  •  
  • accessors : false
  •  
  • persistent : false
  •  

    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 railo-context.Component
    None

    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]