Packageorg.springextensions.actionscript.logging
Classpublic class SOSTarget
InheritanceSOSTarget Inheritance mx.logging.targets.LineFormattedTarget

Provides a logger that writes messages to the SOS console.

In order to use this logger, add an instance to the Log as a target as follows:

var sosTarget:SOSTarget = new SOSTarget(); Log.addTarget(sosTarget);

Author: Christophe Herreman
Version: $Revision: 21 $, $Date: 2008-11-01 22:58:42 +0100 (za, 01 nov 2008) $, $Author: dmurat $
Since: 0.1

See also

http://sos.powerflasher.de


Public Properties
 PropertyDefined by
  debugColor : Number
SOSTarget
  errorColor : Number
SOSTarget
  fatalColor : Number
SOSTarget
  foldMessages : Boolean = true
SOSTarget
  infoColor : Number
SOSTarget
  warningColor : Number
SOSTarget
Public Methods
 MethodDefined by
  
SOSTarget(host:String = "localhost", port:uint = 4445)
Creates a new SOSTarget instance.
SOSTarget
  
onXMLSocketConnect(event:Event):void
SOSTarget
  
onXMLSocketIOError(event:IOErrorEvent):void
SOSTarget
Property detail
debugColorproperty
public var debugColor:Number
errorColorproperty 
public var errorColor:Number
fatalColorproperty 
public var fatalColor:Number
foldMessagesproperty 
public var foldMessages:Boolean = true
infoColorproperty 
public var infoColor:Number
warningColorproperty 
public var warningColor:Number
Constructor detail
SOSTarget()constructor
public function SOSTarget(host:String = "localhost", port:uint = 4445)

Creates a new SOSTarget instance.

Parameters
host:String (default = "localhost") — A fully qualified DNS domain name or an IP address in the form aaa.bbb.ccc.ddd. You can also specify null to connect to the host server on which the SWF file resides. If the SWF file issuing this call is running in a web browser, host must be in the same domain as the SWF file.
 
port:uint (default = 4445) — The TCP port number on the host used to establish a connection. The port number must be 1024 or greater, unless a policy file is being used.
Method detail
onXMLSocketConnect()method
public function onXMLSocketConnect(event:Event):voidParameters
event:Event
onXMLSocketIOError()method 
public function onXMLSocketIOError(event:IOErrorEvent):voidParameters
event:IOErrorEvent