18#ifndef _LOG4CXX_HTML_LAYOUT_H
19#define _LOG4CXX_HTML_LAYOUT_H
34 LOG4CXX_DECLARE_PRIVATE_MEMBER_PTR(HTMLLayoutPrivate, m_priv)
This layout outputs events in a HTML table.
Definition htmllayout.h:32
void appendHeader(LogString &output) override
Append a HTML document header and start a HTML table with column headings that align with the output ...
void setTitle(const LogString &title1)
The Title option takes a String value.
void format(LogString &output, const spi::LoggingEventPtr &event) const override
Append the attributes of event as a HTML table row onto output.
LogString getContentType() const override
Returns the content type output by this layout, i.e "text/html".
bool ignoresThrowable() const override
The HTML layout handles the throwable contained in logging events.
void setOption(const LogString &option, const LogString &value) override
Override this method to set option to value.
bool getLocationInfo() const
Returns the current value of the LocationInfo option.
const LogString & getTitle() const
Returns the current value of the Title option.
void appendFooter(LogString &output) override
Terminate the HTML table and the HTML document.
void activateOptions() override
Activate the options that were previously set with calls to option setters.
void setLocationInfo(bool locationInfoFlag)
The LocationInfo option takes a boolean value.
Extend this abstract class to create your own log layout format.
Definition layout.h:33
std::basic_string< logchar > LogString
Definition logstring.h:51
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:41
#define LOG4CXX_CAST_ENTRY_CHAIN(Interface)
Definition object.h:159
#define BEGIN_LOG4CXX_CAST_MAP()
Definition object.h:141