38#ifndef BLOCXX_LOG_APPENDER_IFC_HPP_INCLUDE_GUARD_
39#define BLOCXX_LOG_APPENDER_IFC_HPP_INCLUDE_GUARD_
40#include "blocxx/BLOCXX_config.h"
148 const String& messageFormat,
193extern DWORD dwTlsIndex;
197pthread_key_t g_loggerKey;
static const GlobalStringArray ALL_CATEGORIES
Pass to createLogAppender to indicate all categories.
static LogAppenderRef getDefaultLogAppender()
Returns a copy of default LogAppenderRef.
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.
bool componentAndCategoryAreEnabled(const String &component, const String &category) const
LogAppender(const StringArray &components=ALL_COMPONENTS, const StringArray &categories=ALL_CATEGORIES, const String &pattern=STR_TTCC_MESSAGE_FORMAT)
static const GlobalString TYPE_SYSLOG
String of the type of the syslog log appender.
static bool setDefaultLogAppender(const LogAppenderRef &ref)
Set the default global LogAppenderRef.
SortedVectorSet< String > m_categories
ELogLevel getLogLevel() const
SortedVectorSet< String > m_components
static LogAppenderRef getThreadLogAppender()
Returns a copy of the thread LogAppenderRef.
bool categoryIsEnabled(const String &category) const
static const GlobalStringArray ALL_COMPONENTS
Pass to createLogAppender to indicate all components.
static LogAppenderRef getCurrentLogAppender()
Get a copy of the per thread LogAppenderRef or if not set, the default one.
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.
void logMessage(const LogMessage &message) const
Log a message using the specified component and category.
static const GlobalString TYPE_STDERR
String of the type of the stderr log appender.
LogMessagePatternFormatter m_formatter
static bool setThreadLogAppender(const LogAppenderRef &ref)
Set a per thread LogAppenderRef that overrides the default one.
This String class is an abstract data type that represents as NULL terminated string of characters.
LazyGlobal< StringArray, const char *const, StringArrayConstructorFactory > GlobalStringArray
LazyGlobal< String, char const *const > GlobalString
Array< String > StringArray
BLOCXX_EXPORT_TEMPLATE(BLOCXX_COMMON_API, Array, Bool)
IntrusiveReference< LogAppender > LogAppenderRef
SortedVectorMap< String, String > LoggerConfigMap