Apache Log4cxx: log4cxx::SimpleLayout Class Reference (original) (raw)
[SimpleLayout](classlog4cxx%5F1%5F1SimpleLayout.html "SimpleLayout consists of the level of the log statement, followed by " - " and then the log message i...") consists of the level of the log statement, followed by " - " and then the log message itself. More...
#include <[simplelayout.h](simplelayout%5F8h%5Fsource.html)>

| Public Member Functions | |
|---|---|
| void | format (LogString &output, const spi::LoggingEventPtr &event, helpers::Pool &pool) const override |
| Returns the log statement in a format consisting of the level, followed by " - " and then the message. | |
| bool | ignoresThrowable () const override |
| The [SimpleLayout](classlog4cxx%5F1%5F1SimpleLayout.html "SimpleLayout consists of the level of the log statement, followed by " - " and then the log message i...") does not handle the throwable contained within LoggingEvents. | |
| void | activateOptions (helpers::Pool &) override |
| Activate the options that were previously set with calls to option setters. | |
| void | setOption (const LogString &, const LogString &) override |
| Set option to value. | |
Public Member Functions inherited from log4cxx::Layout |
|
| 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 (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. | |
Public Member Functions inherited from log4cxx::helpers::Object |
|
| virtual | ~Object () |
| virtual const helpers::Class & | getClass () const =0 |
| virtual bool | instanceof (const Class &clazz) const =0 |
| virtual const void * | cast (const Class &clazz) const =0 |
[SimpleLayout](classlog4cxx%5F1%5F1SimpleLayout.html "SimpleLayout consists of the level of the log statement, followed by " - " and then the log message i...") consists of the level of the log statement, followed by " - " and then the log message itself.
For example,
DEBUG - Hello worldPatternLayout offers a much more powerful alternative.
◆ activateOptions()
| void log4cxx::SimpleLayout::activateOptions ( helpers::Pool & ) | inlineoverridevirtual |
|---|
Activate the options that were previously set with calls to option setters.
No action is performed in this implementation.
Implements log4cxx::spi::OptionHandler.
◆ format()
Returns the log statement in a format consisting of the level, followed by " - " and then the message.
For example,
INFO - "A message"
Implements log4cxx::Layout.
◆ ignoresThrowable()
| bool log4cxx::SimpleLayout::ignoresThrowable ( ) const | inlineoverridevirtual |
|---|
◆ setOption()
| void log4cxx::SimpleLayout::setOption ( const LogString & , const LogString & ) | inlineoverridevirtual |
|---|
The documentation for this class was generated from the following file:
Public Member Functions inherited from