Packagecom.daveoncode.logging.io
Classpublic class LogWriter
InheritanceLogWriter Inheritance flash.events.EventDispatcher

Writes LogRecord objects to a log file.
This class is used internally by LogFileTarget and accessible through logWriter property

See also

com.daveoncode.logging.LogRecord
com.daveoncode.logging.LogFileTarget


Public Methods
 MethodDefined by
  
LogWriter(file:File, sizeLimit:uint)
Constructor function of LogWriter class
LogWriter
  
write(record:LogRecord):void
Writes a new record to the log file.
LogWriter
Constructor detail
LogWriter()constructor
public function LogWriter(file:File, sizeLimit:uint)

Constructor function of LogWriter class

Parameters
file:FileA File reference of the log file
 
sizeLimit:uintNumber of kb beyond which the file will be archived by BackupManager
Method detail
write()method
public function write(record:LogRecord):void

Writes a new record to the log file. If file size exceed the limit it is automatically archived and a new one created

Parameters
record:LogRecordA LogRecord object representing the new line to write