Abstract
The log message format to use. All properties of a log message can be inserted to their placeholders, e.g. '%id%'.
The time format to use for the %time% placeholder. The time format is inspired by https://msdn.microsoft.com/de-de/library/8kb3ddd4(v=vs.110).aspx, but some of the placeholders might not work.
map containing lookups for the printing of formatted messages, see DefaultFormats. severityLookup defaults to DefaultFormats.ENUMS.SEVERITY; dayOfTheWeekLookup defaults to DefaultFormats.ENUMS.DAY_OF_WEEK; monthLookup defaults to DefaultFormats.ENUMS.MONTH; ageLookup defaults to DefaultFormats.ENUMS.AGE; separatorLookup defaults to DefaultFormats.ENUMS.SEPARATOR; noonLookup defaults to DefaultFormats.ENUMS.NOON.
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
ageProtected
dayProtected
formatThe log message format to use. All properties of a log message can be inserted to their placeholders, e.g. '%id%'.
Protected
monthProtected
noonProtected
separatorProtected
severityA simple lookup from where the strings for the severity levels can be fetched. see DefaultFormats.ENUMS.SEVERITY
Protected
timeThe time format to use for the %time% placeholder. The time format is inspired by https://msdn.microsoft.com/de-de/library/8kb3ddd4(v=vs.110).aspx, but some of the placeholders might not work.
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
_handleTransforms the message object according to the format string and forwards the result to the append method.
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
getthe options object for the formatTimeString method.
Applies the message format string to the given log message.
The formatted message string.
Processes the log message parameters in order to replace the placeholders in the message string.
The processed message string with inserted message parameters.
Applies the time format to the given log message.
The formatted message time string
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.
A formatted appender creates a single lined string the structure of which can be specified by a pattern.
Version
1