18 #ifndef _LOG4CXX_JSON_LAYOUT_H 19 #define _LOG4CXX_JSON_LAYOUT_H 26 #pragma warning ( push ) 27 #pragma warning ( disable: 4251 ) 55 void appendSerializedLocationInfo(
LogString& buf,
74 inline
void setLocationInfo(
bool locationInfoFlag)
76 this->locationInfo = locationInfoFlag;
97 this->prettyPrint = prettyPrintFlag;
114 return LOG4CXX_STR(
"application/json");
142 #if defined(_MSC_VER) 143 #pragma warning (pop) 146 #endif // _LOG4CXX_JSON_LAYOUT_H #define LOG4CXX_CAST_ENTRY(Interface)
Definition: object.h:153
#define END_LOG4CXX_CAST_MAP()
Definition: object.h:147
void setPrettyPrint(bool prettyPrintFlag)
The PrettyPrint option takes a boolean value.
Definition: jsonlayout.h:95
LogString ppIndentL2
Definition: jsonlayout.h:48
std::shared_ptr< LoggingEvent > LoggingEventPtr
Definition: appender.h:37
#define BEGIN_LOG4CXX_CAST_MAP()
Definition: object.h:141
bool getLocationInfo() const
Returns the current value of the LocationInfo option.
Definition: jsonlayout.h:83
LogString ppIndentL1
Definition: jsonlayout.h:47
Extend this abstract class to create your own log layout format.
Definition: layout.h:37
LOG4CXX_PTR_DEF(Appender)
#define DECLARE_LOG4CXX_OBJECT(object)
Definition: object.h:39
bool getPrettyPrint() const
Returns the current value of the PrettyPrint option.
Definition: jsonlayout.h:103
virtual bool ignoresThrowable() const
The JSON layout handles the throwable contained in logging events.
Definition: jsonlayout.h:133
#define LOG4CXX_CAST_ENTRY_CHAIN(Interface)
Definition: object.h:159
virtual void activateOptions(log4cxx::helpers::Pool &)
No options to activate.
Definition: jsonlayout.h:120
Definition: appender.h:32
std::basic_string< logchar > LogString
Definition: logstring.h:66
virtual LogString getContentType() const
Returns the content type output by this layout, i.e "application/json".
Definition: jsonlayout.h:112
This layout outputs events in a JSON dictionary.
Definition: jsonlayout.h:36