18 #ifndef _LOG4CXX_TTCC_LAYOUT_H
19 #define _LOG4CXX_TTCC_LAYOUT_H
22 #pragma warning ( push )
23 #pragma warning ( disable: 4231 4251 4275 4786 )
78 bool categoryPrefixing;
108 inline
void setThreadPrinting(
bool threadPrinting1)
110 this->threadPrinting = threadPrinting1;
118 return threadPrinting;
127 this->categoryPrefixing = categoryPrefixing1;
135 return categoryPrefixing;
145 this->contextPrinting = contextPrinting1;
153 return contextPrinting;
162 this->filePrinting = filePrinting1;
202 #if defined(_MSC_VER)
203 #pragma warning ( pop )
Extend this abstract class to create your own log layout format.
Definition: layout.h:40
TTCC layout format consists of time, thread, logger name and nested diagnostic context information,...
Definition: ttcclayout.h:74
bool getCategoryPrefixing() const
Returns value of the CategoryPrefixing option.
Definition: ttcclayout.h:133
void setCategoryPrefixing(bool categoryPrefixing1)
The CategoryPrefixing option specifies whether Logger name is part of log output or not.
Definition: ttcclayout.h:125
void setContextPrinting(bool contextPrinting1)
The ContextPrinting option specifies log output will include the nested context information belonging...
Definition: ttcclayout.h:143
bool getThreadPrinting() const
Returns value of the ThreadPrinting option.
Definition: ttcclayout.h:116
void setFilePrinting(bool filePrinting1)
The FilePrinting option specifies log output will include the file and the line where the log stateme...
Definition: ttcclayout.h:160
virtual void format(LogString &output, const spi::LoggingEventPtr &event, log4cxx::helpers::Pool &pool) const
In addition to the level of the statement and message, this function writes to the ouput stream time,...
bool getContextPrinting() const
Returns value of the ContextPrinting option.
Definition: ttcclayout.h:151
virtual bool ignoresThrowable() const
The TTCCLayout does not handle the throwable contained within LoggingEvents.
Definition: ttcclayout.h:193
bool getFilePrinting() const
Returns value of the ContextPrinting option.
Definition: ttcclayout.h:168
This abstract layout takes care of all the date related options and formatting work.
Definition: datelayout.h:39
std::shared_ptr< LoggingEvent > LoggingEventPtr
Definition: appender.h:37
Definition: appender.h:33
std::basic_string< logchar > LogString
Definition: logstring.h:66
LOG4CXX_PTR_DEF(Appender)
#define LOG4CXX_CAST_ENTRY(Interface)
Definition: object.h:153
#define END_LOG4CXX_CAST_MAP()
Definition: object.h:147
#define DECLARE_LOG4CXX_OBJECT(object)
Definition: object.h:39
#define LOG4CXX_CAST_ENTRY_CHAIN(Interface)
Definition: object.h:159
#define BEGIN_LOG4CXX_CAST_MAP()
Definition: object.h:141