| Package | org.as3commons.logging.setup.target |
| Class | public final class FatalBuffer |
| Inheritance | FatalBuffer ConditionalBuffer 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.
| Method | Defined By | ||
|---|---|---|---|
FatalBuffer(target:*, maxStatements:uint, introspectDepth:uint = 5) | FatalBuffer | ||
![]() | log(name:String, shortName:String, level:int, timeStamp:Number, message:*, params:Array, person:String):void
Renders a log statement. | ConditionalBuffer | |
| Method | Defined By | ||
|---|---|---|---|
test(name:String, shortName:String, level:int, timeStamp:Number, message:*, params:Array, person:String):Boolean [override]
Tests the
| FatalBuffer | ||
| FatalBuffer | () | Constructor |
public function FatalBuffer(target:*, maxStatements:uint, introspectDepth:uint = 5)Parameters
target:* | |
maxStatements:uint (default = NaN) | |
introspectDepth:uint (default = 5) |
| test | () | method |
override protected function test(name:String, shortName:String, level:int, timeStamp:Number, message:*, params:Array, person:String):BooleanTests 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.
|
Boolean |