18 #ifndef _LOG4CXX_XML_LAYOUT_H
19 #define _LOG4CXX_XML_LAYOUT_H
81 inline
void setLocationInfo(
bool locationInfo1)
83 this->locationInfo = locationInfo1;
Extend this abstract class to create your own log layout format.
Definition: layout.h:40
The output of the XMLLayout consists of a series of log4j:event elements.
Definition: xmllayout.h:54
virtual void format(LogString &output, const spi::LoggingEventPtr &event, log4cxx::helpers::Pool &p) const
Formats a LoggingEvent in conformance with the log4cxx.dtd.
bool getProperties()
Gets whether MDC key-value pairs should be output.
Definition: xmllayout.h:109
void activateOptions(log4cxx::helpers::Pool &)
No options to activate.
Definition: xmllayout.h:116
virtual void setOption(const LogString &option, const LogString &value)
Set options.
void setProperties(bool flag)
Sets whether MDC key-value pairs should be output, default false.
Definition: xmllayout.h:99
bool getLocationInfo() const
Returns the current value of the LocationInfo option.
Definition: xmllayout.h:89
virtual bool ignoresThrowable() const
The XMLLayout prints and does not ignore exceptions.
Definition: xmllayout.h:136
std::shared_ptr< LoggingEvent > LoggingEventPtr
Definition: appender.h:37
LOG4CXX_PTR_DEF(DOMConfigurator)
Definition: appender.h:33
std::basic_string< logchar > LogString
Definition: logstring.h:66
#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