Abstract
Optional
filters: Filter[]Protected
_bufferA buffer that will be filled with log messages until the Appender is writable.
The relation, to which all the appenders results must adhere. See FilterRelation.
Protected
_filtersThe filter that will be evaluated in order to determine whether a message shall be handled by this appender.
Protected
Abstract
_appendThis function does the actual appending, e.g. to the console or a file, and thus, must be overriden by subclasses. The default implementation does nothing.
Protected
_handleThis function forwards the message to the _appendMessage method. The function should be overridden by subclasses for the pre-processing of a log message, e.g. transforming it into a formatted string.
The message that shall be handled.
Protected
evalEvaluates the message with respect to the message filters set.
The message to evaluate.
True, if the message matches the filters, false otherwise.
Protected
pushPushes a message to the message cache. The buffer is only intended to act as a temporary store until an appender enables its writable state.
Similar to receiveMessage, except the filters are not evaluated.
The message to receive and append.
The input function of an Appender for any log message. This function calls the filter evaluation, and hands the message over to the _handleMessage method, if the appender is currently writable. If the appender is not writable, the message is stored to the internal buffer.
The message that shall be received and appended.
True, if the message was handled, false otherwise.
An appender is the actual output of log messages. For output to the console or to files, the respective subclasses shall be used.
Version
1