AppendMail

Appender for sending formatted output to a Mail server. Thanks to BCS for posting how to do this.

Constructors

this
this(InternetAddress server, char[] from, char[] to, char[] subj, Appender.Layout how)

Create with the given layout and server address

Members

Functions

append
void append(LogEvent event)

Send an event to the mail server

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