18 #ifndef _LOG4CXX_HTML_LAYOUT_H
19 #define _LOG4CXX_HTML_LAYOUT_H
22 #pragma warning ( push )
23 #pragma warning ( disable: 4231 4251 4275 4786 )
67 inline
void setLocationInfo(
bool locationInfoFlag)
69 this->locationInfo = locationInfoFlag;
87 this->title.assign(title1);
103 return LOG4CXX_STR(
"text/html");
141 #if defined(_MSC_VER)
142 #pragma warning ( pop )
This layout outputs events in a HTML table.
Definition: htmllayout.h:38
virtual void setOption(const LogString &option, const LogString &value)
Set options.
void setTitle(const LogString &title1)
The Title option takes a String value.
Definition: htmllayout.h:85
virtual void appendFooter(LogString &output, log4cxx::helpers::Pool &pool)
Append the appropriate HTML footers.
bool getLocationInfo() const
Returns the current value of the LocationInfo option.
Definition: htmllayout.h:75
virtual void format(LogString &output, const spi::LoggingEventPtr &event, log4cxx::helpers::Pool &pool) const
Implement this method to create your own layout format.
virtual bool ignoresThrowable() const
The HTML layout handles the throwable contained in logging events.
Definition: htmllayout.h:132
virtual void activateOptions(log4cxx::helpers::Pool &)
No options to activate.
Definition: htmllayout.h:109
virtual LogString getContentType() const
Returns the content type output by this layout, i.e "text/html".
Definition: htmllayout.h:101
virtual void appendHeader(LogString &output, log4cxx::helpers::Pool &pool)
Append appropriate HTML headers.
const LogString & getTitle() const
Returns the current value of the Title option.
Definition: htmllayout.h:93
Extend this abstract class to create your own log layout format.
Definition: layout.h:40
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