| Package | org.as3commons.logging.setup.target |
| Class | public class FrameBufferTarget |
| Inheritance | FrameBufferTarget 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.
| Property | Defined 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 | ||
| Method | Defined 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 | ||
| introspectDepth | property |
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)
public function set introspectDepth(value:uint):void| FrameBufferTarget | () | Constructor |
public function FrameBufferTarget(target:ILogTarget, statementsPerFrame:int)
Constructs a new FrameBufferTarget.
target:ILogTarget — Target to log the statements to.
| |
statementsPerFrame:int — Amount of statements triggered per frame.
|
| log | () | method |
public function log(name:String, shortName:String, level:int, timeStamp:Number, message:*, parameters:Array, person:String):voidRenders 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.
|