Packageorg.as3commons.logging.setup.target
Classpublic final class SOSGateway
InheritanceSOSGateway Inheritance XMLSocketGateway Inheritance Object

Since : 2.0

SOSGateway acts as gateway to channel all requests from SOSTarget instances to the same server.

There is the chance that one might want to use differently formatted messages in the configuration for the same SOS target. This Gateway is the separation between "how to access" and "what to send".

The Gateway contains fall-back mechanisms if its was temporarily not possible to send log statements to the targets. (i.e. If the SOS console wasnt started at the time of the start of the swf)



Public Methods
 MethodDefined By
  
SOSGateway(host:String = null, port:uint = 4444)
Constructs a new SOSGateway
SOSGateway
  
log(key:String, message:String):void
Logs a Statement to the SOS Console.
SOSGateway
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 none is defined
SOSGateway
Constructor Detail
SOSGateway()Constructor
public function SOSGateway(host:String = null, port:uint = 4444)

Constructs a new SOSGateway

Parameters
host:String (default = null) — Host on which the SOS console is running (default: localhost)
 
port:uint (default = 4444) — Port on which the SOS console is running (default: 4444)
Method Detail
log()method
public function log(key:String, message:String):void

Logs a Statement to the SOS Console.

Parameters

key:String
 
message:String

Constant Detail
DEFAULT_HOSTConstant
public static const DEFAULT_HOST:String = localhost

Default host to be used if none is defined