| Package | org.as3commons.logging.setup.target |
| Class | public class XMLSocketGateway |
| Inheritance | XMLSocketGateway Object |
| Subclasses | ChainsawGateway, SOSGateway |
| Since : | 2.7 |
XMLSocketGateway is a abstract class to support sending
messages using a xml socket.
It sends out messages in intervals. The connection will be started upon the first log request. In case the connection was not established due to an IOError or after its closed it will try to reconnect to the server.
The implementation has to use doLog to send log messages.
| Method | Defined By | ||
|---|---|---|---|
XMLSocketGateway(host:String, port:uint, sendInterval:int = 200, maxBufferSize:int, prefix:String)
Constructs a new XMLSocketGateway
| XMLSocketGateway | ||
| Method | Defined By | ||
|---|---|---|---|
doLog(message:String):void
Logs a Statement to the XMLSocket. | XMLSocketGateway | ||
| XMLSocketGateway | () | Constructor |
public function XMLSocketGateway(host:String, port:uint, sendInterval:int = 200, maxBufferSize:int, prefix:String)
Constructs a new XMLSocketGateway
host:String — Host on which the client is running (default: localhost)
| |
port:uint — Port on which the client is running (default: 4444)
| |
sendInterval:int (default = 200) — Interval on which message should be sent out
| |
maxBufferSize:int (default = NaN) — Maximal amount of messages sent in one request
| |
prefix:String — Prefix to be added when sending the messages
|
| doLog | () | method |
protected function doLog(message:String):voidLogs a Statement to the XMLSocket.
Parameters
message:String |