Packageorg.as3commons.logging.setup.target
Classpublic final class ChainsawTarget
InheritanceChainsawTarget Inheritance Object
Implements ILogTarget

Since : 2.7

ChainsawTarget sends events to Chainsaw, a tool from the log4j platform.

See also

http://logging.apache.org/chainsaw
org.as3commons.logging.setup.target.ChainsawGateway


Public Properties
 PropertyDefined By
  format : String
[write-only]
ChainsawTarget
Public Methods
 MethodDefined By
  
ChainsawTarget(format:String = null, gateway:ChainsawGateway = null)
Constructs a new ChainsawTarget
ChainsawTarget
  
log(name:String, shortName:String, level:int, timeStamp:Number, message:*, params:Array, person:String):void
Renders a log statement.
ChainsawTarget
Public Constants
 ConstantDefined By
  DEFAULT_FORMAT : String = {message_dqt}
[static] Default format used to format the log statement
ChainsawTarget
  DEFAULT_GATEWAY : ChainsawGateway
[static] Contains the standard gateway used if no custom one is required.
ChainsawTarget
Property Detail
formatproperty
format:String  [write-only]


Implementation
    public function set format(value:String):void
Constructor Detail
ChainsawTarget()Constructor
public function ChainsawTarget(format:String = null, gateway:ChainsawGateway = null)

Constructs a new ChainsawTarget

Parameters
format:String (default = null) — Format to be used to format the statements.
 
gateway:ChainsawGateway (default = null) — Gateway to the SOS that runs. Will use the default gateway in case no custom one is provided.
Method Detail
log()method
public function log(name:String, shortName:String, level:int, timeStamp:Number, message:*, params: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.
 
params:Array — Parameters for the log statement.
 
person:String — Information about the person that filed this log statement.

Constant Detail
DEFAULT_FORMATConstant
public static const DEFAULT_FORMAT:String = {message_dqt}

Default format used to format the log statement

DEFAULT_GATEWAYConstant 
public static const DEFAULT_GATEWAY:ChainsawGateway

Contains the standard gateway used if no custom one is required.