Appender

Base class for all Appenders. These objects are responsible for emitting messages sent to a particular logger. There may be more than one appender attached to any logger. The actual message is constructed by another class known as an EventLayout.

Constructors

this
this()

Create an Appender and default its layout to LayoutSimple.

Members

Aliases

Mask
alias Mask = int
Undocumented in source.

Functions

append
void append(LogEvent event)

Append a message to the output.

close
void close()

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

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.

Interfaces

Layout
interface Layout

Interface for all logging layout instances

Properties

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

level
Level level [@property getter]

Return the current Level setting

level
Level level [@property setter]

Return the current Level setting

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.

next
Appender next [@property setter]

Attach another appender to this one

next
Appender next [@property getter]

Return the next appender in the list

Meta