AppendSocket

Appender for sending formatted output to a Socket.

Constructors

this
this(InternetAddress address, Appender.Layout how, const(char)[] eol)

Create with the given Layout and address. Specify an end- of-line string if you want that appended to each message

Members

Functions

append
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.

close
void close()

Close the socket associated with this Appender

Properties

mask
Mask mask [@property getter]

Return the fingerprint for this class

name
const(char)[] name [@property getter]

Return the name of this class

Inherited Members

From Appender

Mask
alias Mask = int
Undocumented in source.
Layout
interface Layout

Interface for all logging layout instances

mask
Mask mask [@property getter]

Return the mask used to identify this Appender. The mask is used to figure out whether an appender has already been invoked for a particular logger.

name
const(char)[] name [@property getter]

Return the name of this Appender.

append
void append(LogEvent event)

Append a message to the output.

level
Level level [@property getter]

Return the current Level setting

level
Level level [@property setter]

Return the current Level setting

register
Mask register(const(char)[] tag)

Static method to return a mask for identifying the Appender. Each Appender class should have a unique fingerprint so that we can figure out which ones have been invoked for a given event. A bitmask is a simple an efficient way to do that.

layout
Layout layout [@property setter]

Set the current layout to be that of the argument, or the generic layout where the argument is null

layout
Layout layout [@property getter]

Return the current Layout

next
Appender next [@property setter]

Attach another appender to this one

next
Appender next [@property getter]

Return the next appender in the list

close
void close()

Close this appender. This would be used for file, sockets, and such like.

Meta