Packagede.flamelab.log
Classpublic class LogWriterAirFile
InheritanceLogWriterAirFile Inheritance AbstractLogWriter Inheritance flash.events.EventDispatcher

Concrete writer class for logging messages to a log file on the clients file system. Only works with Adobe Air applications as they have access to the file system. The class opens an asynchron stream an puts a message in the defined log file everytime the wrtie() method is called.



Public Methods
 MethodDefined by
  
LogWriterAirFile(conf:Object)
Constructor, creates a new writer.
LogWriterAirFile
 Inherited
addFilter(filter:ILogFilter):void
Add a filter to writer's filter list.
AbstractLogWriter
 Inherited
filter(event:LogEvent):Boolean
Filter log data with applied filters.
AbstractLogWriter
 Inherited
format(event:LogEvent):String
Format output by formatter.
AbstractLogWriter
 Inherited
getEnabled():Boolean
Get enabled state of writer
AbstractLogWriter
 Inherited
log(event:LogEvent):void
Log given log event according to writers implementation.
AbstractLogWriter
 Inherited
setEnabled(state:Boolean):void
Enable or disable writer.
AbstractLogWriter
 Inherited
setFormatter(formatter:ILogFormatter):void
Set formatter instance for writer.
AbstractLogWriter
  
shutdown():void
Concrete implementation of the shutdown function defined by abstract class
LogWriterAirFile
  
write(event:LogEvent):void
Concrete implementation of the writer method defined by abstract class
LogWriterAirFile
Constructor detail
LogWriterAirFile()constructor
public function LogWriterAirFile(conf:Object)

Constructor, creates a new writer. The configuration object mus at least contain the following key-value pairs:

Parameters
conf:Object — Configuration obect containig config data
Method detail
shutdown()method
public override function shutdown():void

Concrete implementation of the shutdown function defined by abstract class

write()method 
public override function write(event:LogEvent):void

Concrete implementation of the writer method defined by abstract class

Parameters
event:LogEvent — Log event containig all log related information