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,
177 virtual void doProcessLogMessage(
const String& formattedMessage,
const LogMessage& message)
const = 0;
193 extern DWORD dwTlsIndex;
197 pthread_key_t g_loggerKey;
Array<> wraps std::vector<> in COWReference<> adding ref counting and copy on write capability.
static const GlobalStringArray ALL_CATEGORIES
Pass to createLogAppender to indicate all categories.
BLOCXX_EXPORT_TEMPLATE(BLOCXX_COMMON_API, Array, Bool)
LogMessagePatternFormatter m_formatter
SortedVectorSet< String > m_components
ELogLevel getLogLevel() const
This String class is an abstract data type that represents as NULL terminated string of characters.
static const GlobalString TYPE_MPFILE
String of the type of the multi-process file log appender.
class BLOCXX_COMMON_API LogAppender
static const GlobalString TYPE_STDERR
String of the type of the stderr log appender.
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.
SortedVectorSet< String > m_categories
static const GlobalStringArray ALL_COMPONENTS
Pass to createLogAppender to indicate all components.
This class can be used to store a global variable that is lazily initialized in a thread safe manner.
static const GlobalString TYPE_SYSLOG
String of the type of the syslog log appender.
static const GlobalString TYPE_FILE
String of the type of the file log appender.