Packageorg.as3commons.logging.setup.target
Classpublic class FrameBufferTarget
InheritanceFrameBufferTarget Inheritance Object
Implements ILogTarget, IAsyncLogTarget

FrameBufferTarget limits the amount of log statements that get written to another log target per frame.

If you log too many statements in too short time they block the single-threaded Flash system. To prevent that you can use this FrameBufferTarget.

This FrameBufferTarget acts as a wrapper to any ILogTarget. It just allows a certain amount of log statements per frame. If more statements that the defined limit gets triggered they will be stored in a cache and be triggered in the next EnterFrame event.



Public Properties
 PropertyDefined By
  introspectDepth : 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.
FrameBufferTarget
Public Methods
 MethodDefined By
  
FrameBufferTarget(target:ILogTarget, statementsPerFrame:int)
Constructs a new FrameBufferTarget.
FrameBufferTarget
  
log(name:String, shortName:String, level:int, timeStamp:Number, message:*, parameters:Array, person:String):void
Renders a log statement.
FrameBufferTarget
Property Detail
introspectDepthproperty
introspectDepth: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. (default=uint.MAX_VALUE)


Implementation
    public function set introspectDepth(value:uint):void
Constructor Detail
FrameBufferTarget()Constructor
public function FrameBufferTarget(target:ILogTarget, statementsPerFrame:int)

Constructs a new FrameBufferTarget.

Parameters
target:ILogTarget — Target to log the statements to.
 
statementsPerFrame:int — Amount of statements triggered per frame.
Method Detail
log()method
public function log(name:String, shortName:String, level:int, timeStamp:Number, message:*, parameters:Array, person:String):void

Renders a log statement.

In version 2.5 the person information was added and the time stamp was modified to represent the local time rather than the time in gmt. Add START_TIME to get the time in ms since 1970.

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 — getTimer() Timestame of when the log statement was triggered.
 
message:* — Message of the log statement.
 
parameters:Array — Parameters for the log statement.
 
person:String — Information about the person that filed this log statement.