Packagecom.daveoncode.logging.io
Classpublic class BackupManager
InheritanceBackupManager Inheritance flash.events.EventDispatcher

BackupManager is used internally by LogFileTarget to create backups of the log file (accordling to LogFileTarget sizeLimit property).
It can also be used publicly to get a collection (Vector of File objects) of archived files. Important: this class uses the Singleton design pattern, you can't create new instances of BackupManager, but you have to use getInstance() method to access to the only instance available.

See also

com.daveoncode.logging.LogFileTarget


Public Methods
 MethodDefined by
  
Constructor function of BackupManager class
BackupManager
  
backup():void
Archives the current log file as a .bak file
BackupManager
  
getBackups():Vector
Returns the archived log files
BackupManager
  
[static] Returns the current BackupManager instance
BackupManager
Constructor detail
BackupManager()constructor
public function BackupManager()

Constructor function of BackupManager class

Method detail
backup()method
public function backup():void

Archives the current log file as a .bak file

getBackups()method 
public function getBackups():Vector

Returns the archived log files

Returns
VectorA Vector of File objects
getInstance()method 
public static function getInstance():BackupManager

Returns the current BackupManager instance

Returns
BackupManager