|
| JSONLayout () |
|
void | setLocationInfo (bool locationInfoFlag) |
| The LocationInfo option takes a boolean value.
|
|
bool | getLocationInfo () const |
| Returns the current value of the LocationInfo option.
|
|
void | setPrettyPrint (bool prettyPrintFlag) |
| The PrettyPrint option takes a boolean value.
|
|
bool | getPrettyPrint () const |
| Returns the current value of the PrettyPrint option.
|
|
virtual LogString | getContentType () const |
| Returns the content type output by this layout, i.e "application/json".
|
|
virtual void | activateOptions (log4cxx::helpers::Pool &) |
| No options to activate.
|
|
virtual void | setOption (const LogString &option, const LogString &value) |
| Set options.
|
|
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 JSON layout handles the throwable contained in logging events.
|
|
virtual | ~Layout () |
|
virtual void | format (LogString &output, const spi::LoggingEventPtr &event, log4cxx::helpers::Pool &pool) const =0 |
| Implement this method to create your own layout format.
|
|
virtual LogString | getContentType () const |
| Returns the content type output by this layout.
|
|
virtual void | appendHeader (LogString &output, log4cxx::helpers::Pool &p) |
| Append the header for the layout format.
|
|
virtual void | appendFooter (LogString &output, log4cxx::helpers::Pool &p) |
| Append the footer for the layout format.
|
|
virtual bool | ignoresThrowable () const =0 |
| If the layout handles the throwable object contained within LoggingEvent , then the layout should return false .
|
|
Public Member Functions inherited from log4cxx::spi::OptionHandler |
virtual | ~OptionHandler () |
|
virtual void | activateOptions (log4cxx::helpers::Pool &p)=0 |
| Activate the options that were previously set with calls to option setters.
|
|
virtual void | setOption (const LogString &option, const LogString &value)=0 |
| Set option to value .
|
|
virtual | ~Object () |
|
virtual bool | instanceof (const Class &clazz) const =0 |
|
virtual const void * | cast (const Class &clazz) const =0 |
|
This layout outputs events in a JSON dictionary.