AppendStderrStdout

Appender class.

Important properties: - always flushes after logging - warnings/errors/fatals go to stderr - info/traces/debug goes to stdout

Exact log level to be treated as first "stderr" level can be configured via constructor.

Constructors

this
this(ILogger.Level first_stderr_level, Appender.Layout how)

Constructor

Members

Functions

append
void append(LogEvent event)

Writes log event to target stream

mask
Mask mask()
name
istring name()

Inherited Members

From Appender

Layout
interface Layout

Interface for all logging layout instances

mask
Mask mask()

Return the mask used to identify this Appender.

name
cstring name()

Return the name of this Appender.

append
void append(LogEvent event)

Append a message to the output.

level
ILogger.Level level()

Return the current Level setting

level
Appender level(ILogger.Level l)

Return the current Level setting

register
Mask register(cstring tag)

Static method to return a mask for identifying the Appender.

layout
void layout(Layout how)

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

layout
Layout layout()

Return the current Layout

next
void next(Appender appender)

Attach another appender to this one

next
Appender next()

Return the next appender in the list

close
void close()

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

Meta