38#ifndef BLOCXX_LOG_APPENDER_IFC_HPP_INCLUDE_GUARD_
39#define BLOCXX_LOG_APPENDER_IFC_HPP_INCLUDE_GUARD_
40#include "blocxx/BLOCXX_config.h"
106 void logMessage(
const LogMessage& message)
const;
108 bool categoryIsEnabled(
const String& category)
const;
109 bool componentAndCategoryAreEnabled(
const String& component,
const String& category)
const;
148 const String& messageFormat,
193extern DWORD dwTlsIndex;
197pthread_key_t g_loggerKey;
This class can be used to store a global variable that is lazily initialized in a thread safe manner.
static const GlobalStringArray ALL_CATEGORIES
Pass to createLogAppender to indicate all categories.
static const GlobalString TYPE_MPFILE
String of the type of the multi-process file log appender.
static const GlobalString TYPE_FILE
String of the type of the file log appender.
static const GlobalString TYPE_SYSLOG
String of the type of the syslog log appender.
SortedVectorSet< String > m_categories
ELogLevel getLogLevel() const
SortedVectorSet< String > m_components
static const GlobalStringArray ALL_COMPONENTS
Pass to createLogAppender to indicate all components.
virtual void doProcessLogMessage(const String &formattedMessage, const LogMessage &message) const =0
static const GlobalString STR_TTCC_MESSAGE_FORMAT
The Log4j TTCC message format - TTCC is acronym for Time Thread Category Component.
static const GlobalString TYPE_NULL
String of the type of the null log appender.
static const GlobalString TYPE_STDERR
String of the type of the stderr log appender.
LogMessagePatternFormatter m_formatter
This String class is an abstract data type that represents as NULL terminated string of characters.
BLOCXX_EXPORT_TEMPLATE(BLOCXX_COMMON_API, Array, Bool)