Packageorg.as3commons.logging.setup.target
Classpublic class XMLSocketGateway
InheritanceXMLSocketGateway Inheritance 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.



Public Methods
 MethodDefined By
  
XMLSocketGateway(host:String, port:uint, sendInterval:int = 200, maxBufferSize:int, prefix:String)
Constructs a new XMLSocketGateway
XMLSocketGateway
Protected Methods
 MethodDefined By
  
doLog(message:String):void
Logs a Statement to the XMLSocket.
XMLSocketGateway
Constructor Detail
XMLSocketGateway()Constructor
public function XMLSocketGateway(host:String, port:uint, sendInterval:int = 200, maxBufferSize:int, prefix:String)

Constructs a new XMLSocketGateway

Parameters
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
Method Detail
doLog()method
protected function doLog(message:String):void

Logs a Statement to the XMLSocket.

Parameters

message:String