| Package | org.as3commons.logging.setup.target |
| Class | public final class SOSGateway |
| Inheritance | SOSGateway XMLSocketGateway 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)
| Method | Defined 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 | ||
| Constant | Defined By | ||
|---|---|---|---|
| DEFAULT_HOST : String = localhost [static] Default host to be used if none is defined | SOSGateway | ||
| SOSGateway | () | Constructor |
public function SOSGateway(host:String = null, port:uint = 4444)
Constructs a new SOSGateway
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)
|
| log | () | method |
public function log(key:String, message:String):voidLogs a Statement to the SOS Console.
Parameters
key:String | |
message:String |
| DEFAULT_HOST | Constant |
public static const DEFAULT_HOST:String = localhostDefault host to be used if none is defined