Packageorg.as3commons.logging.setup.target
Classpublic final class ChainsawGateway
InheritanceChainsawGateway Inheritance XMLSocketGateway Inheritance Object

Since : 2.7

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

To use this class in the setup process one has to refer to ChainsawTarget.

See also

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


Public Methods
 MethodDefined By
  
ChainsawGateway(applicationName:String = null, applicationThread:String = null, host:String = null, port:int = 4448, sendInterval:int = 800)
Creates a new ChainsawGateway for sending log events to Chainsaw
ChainsawGateway
  
log(name:String, time:Number, level:int, message:String):void
ChainsawGateway
Protected Methods
 MethodDefined By
 Inherited
doLog(message:String):void
Logs a Statement to the XMLSocket.
XMLSocketGateway
Public Constants
 ConstantDefined By
  DEFAULT_HOST : String = localhost
[static] Default host to be used if no host ist passed in
ChainsawGateway
Constructor Detail
ChainsawGateway()Constructor
public function ChainsawGateway(applicationName:String = null, applicationThread:String = null, host:String = null, port:int = 4448, sendInterval:int = 800)

Creates a new ChainsawGateway for sending log events to Chainsaw

Parameters
applicationName:String (default = null) — Name of the application to be provided to Chainsaw
 
applicationThread:String (default = null) — Thread information to be provided to Chainsaw
 
host:String (default = null) — Host name on which Chainsaw is running
 
port:int (default = 4448) — Port on which Chainsaw is running
 
sendInterval:int (default = 800) — Interval used to send to Chainsaw
Method Detail
log()method
public function log(name:String, time:Number, level:int, message:String):void

Parameters

name:String
 
time:Number
 
level:int
 
message:String

Constant Detail
DEFAULT_HOSTConstant
public static const DEFAULT_HOST:String = localhost

Default host to be used if no host ist passed in