24 #ifndef LOG4CPLUS_LAYOUT_HEADER_
25 #define LOG4CPLUS_LAYOUT_HEADER_
29 #if defined (LOG4CPLUS_HAVE_PRAGMA_ONCE)
48 class PatternConverter;
169 TTCCLayout(
bool use_gmtime =
false,
bool thread_printing =
true,
170 bool category_prefixes =
true,
bool context_printing =
true);
188 bool use_gmtime =
false;
189 bool thread_printing =
true;
190 bool category_prefixing =
true;
191 bool context_printing =
true;
This class is used to layout strings sent to an {}.
Layout(const helpers::Properties &properties)
LogLevelManager & llmCache
virtual void formatAndAppend(log4cplus::tostream &output, const log4cplus::spi::InternalLoggingEvent &event)=0
This class is used to "manage" LogLevel definitions.
A flexible layout configurable with pattern string.
std::vector< std::unique_ptr< pattern::PatternConverter > > parsedPattern
PatternLayout(const log4cplus::tstring &pattern)
log4cplus::tstring pattern
virtual void formatAndAppend(log4cplus::tostream &output, const log4cplus::spi::InternalLoggingEvent &event)
PatternLayout(const log4cplus::helpers::Properties &properties)
void init(const log4cplus::tstring &pattern, unsigned ndcMaxDepth=0)
SimpleLayout consists of the LogLevel of the log statement, followed by " - " and then the log messag...
SimpleLayout(const log4cplus::helpers::Properties &properties)
virtual void formatAndAppend(log4cplus::tostream &output, const log4cplus::spi::InternalLoggingEvent &event)
TTCC layout format consists of time, thread, Logger and nested diagnostic context information,...
bool getContextPrinting() const
void setCategoryPrefixing(bool)
void setContextPrinting(bool)
void setThreadPrinting(bool)
bool getCategoryPrefixing() const
TTCCLayout(const log4cplus::helpers::Properties &properties)
virtual void formatAndAppend(log4cplus::tostream &output, const log4cplus::spi::InternalLoggingEvent &event)
TTCCLayout(bool use_gmtime=false, bool thread_printing=true, bool category_prefixes=true, bool context_printing=true)
log4cplus::tstring dateFormat
bool getThreadPrinting() const
The internal representation of logging events.
This header defines the LogLevel type.
chrono::time_point< Clock, Duration > Time
LOG4CPLUS_EXPORT helpers::Time const & getTTCCLayoutTimeBase()
std::basic_string< tchar > tstring
std::basic_ostream< tchar > tostream