Packageorg.as3commons.logging.setup.target
Classpublic final class FatalBuffer
InheritanceFatalBuffer Inheritance ConditionalBuffer Inheritance Object

Since : 2.5

FatalBuffer passes all statements sent to it to another target once one fatal statement was sent.
        LOGGER_SETUP.setup = new SimpleTargetSetup(
          new FatalBuffer( new HttpTarget( "http://my.domain/logger") )
        );
        
        // This setup will log the last 50 statements to the domain in case
        // a fatal log statement was triggered.
     



Public Properties
 PropertyDefined By
 InheritedintrospectDepth : uint
[write-only] Asynchronous targets need to introspect variables to store them, for that the introspection depth defines how deep the variables should be serialized.
ConditionalBuffer
 InheritedlogFactory : LoggerFactory
[write-only] LoggerFactory to be called with all the buffered statements, once the condition has been reached.
ConditionalBuffer
 InheritedlogTarget : ILogTarget
[write-only] ILogTarget to be called with all the buffered statements, once the condition has been reached.
ConditionalBuffer
 InheritedmaxStatements : uint
[write-only] Maximum amount of statements buffered, if the buffer is full, the old statements will be dropped
ConditionalBuffer
 Inheritedtarget : *
[write-only] Target to be called with all the buffered statements, once the condition has been reached.
ConditionalBuffer
Public Methods
 MethodDefined By
  
FatalBuffer(target:*, maxStatements:uint, introspectDepth:uint = 5)
FatalBuffer
 Inherited
log(name:String, shortName:String, level:int, timeStamp:Number, message:*, params:Array, person:String):void
Renders a log statement.
ConditionalBuffer
Protected Methods
 MethodDefined By
  
test(name:String, shortName:String, level:int, timeStamp:Number, message:*, params:Array, person:String):Boolean
[override] Tests the
FatalBuffer
Constructor Detail
FatalBuffer()Constructor
public function FatalBuffer(target:*, maxStatements:uint, introspectDepth:uint = 5)

Parameters
target:*
 
maxStatements:uint (default = NaN)
 
introspectDepth:uint (default = 5)
Method Detail
test()method
override protected function test(name:String, shortName:String, level:int, timeStamp:Number, message:*, params:Array, person:String):Boolean

Tests the

Parameters

name:String — Name of the logger that triggered the log statement.
 
shortName:String — Shortened form of the name.
 
level:int — Level of the log statement that got triggered.
 
timeStamp:Number — Time stamp of when the log statement got triggered.
 
message:* — Message of the log statement.
 
params:Array — Parameters for the log statement.
 
person:String — Information about the person that filed this log statement.

Returns
Boolean