tango.util.log.AppendSocket

License:
BSD style:

Version:
Initial release: May 2004

author:
Kris

class AppendSocket: tango.util.log.Log.Appender;
Appender for sending formatted output to a Socket.

this(InternetAddress address, Appender.Layout how = null, const(char)[] eol = null);
Create with the given Layout and address. Specify an end- of-line string if you want that appended to each message

const @property Mask mask();
Return the fingerprint for this class

const @property const(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


Page generated by Ddoc. Copyright (c) 2004 Kris Bell. All rights reserved