tango.util.log.AppendSocket

License:

BSD style: see license.txt

Version:

Initial release: May 2004

Author:

Kris
class AppendSocket : Appender [public] #
Appender for sending formatted output to a Socket.
this(InternetAddress address, Appender.Layout how = null, char[] eol = null) #
Create with the given Layout and address. Specify an end- of-line string if you want that appended to each message
Mask mask() #
Return the fingerprint for this class
char[] name() #
Return the name of this class
void append(LogEvent event) #
Append an event to the output. If the operations fails we have to revert to an alternative logging strategy, which will probably require a backup Appender specified during construction. For now we simply echo to Cerr if the socket has become unavailable.
void close() #
Close the socket associated with this Appender