log4tango::LayoutAppender(3)
β¨ log4tango::LayoutAppender β¨
okay bestie, welcome to the log4tango manual, section 3 π this one's all about log4tango::LayoutAppender and honestly? it's giving "the appender that knows how to dress up your log messages." let's get into it π
πΈ NAME πΈ
log4tango::LayoutAppender β the appender that comes with a layout, iykyk π
π¦ SYNOPSIS π¦
#include <LayoutAppender.hh>
Inherits log4tango::Appender.
Inherited by log4tango::FileAppender, and log4tango::OstreamAppender.
π Public Types π
typedef Layout DefaultLayoutTypeβ the default layout type this appender rolls with, periodt β¨
π Public Member Functions π
LayoutAppender (const std::string &name)β constructor, takes the appender'snameπ«Άvirtual ~LayoutAppender ()β destructor, virtual, so it cleans up nicely π§Ήvirtual bool requires_layout () constβ check if the appender uses a layout πvirtual void set_layout (Layout *layout=0)β change the layout π
π Protected Member Functions π
Layout & get_layout ()β grab a reference to the layout (protected, so it's for the family only π)
π« Member Typedef Documentation π«
typedef Layout log4tango::LayoutAppender::DefaultLayoutType
literally just the typedef, no extra lore. it's Layout. that's it. iconic for being simple β
π Constructor & Destructor Documentation π
log4tango::LayoutAppender::LayoutAppender (const std::string & name)
the constructor. give it a name and it's ready to go β¨
log4tango::LayoutAppender::~LayoutAppender () [virtual]
the destructor, and yes it's [virtual] β because we do things properly around here π
π₯ Member Function Documentation π₯
Layout & log4tango::LayoutAppender::get_layout (void) [protected]
protected member function that hands you back a Layout &. it's [protected] so bestie, it's for subclasses, not for randos at the party π
bool log4tango::LayoutAppender::requires_layout () const [virtual]
Check if the appender uses a layout. π§
Returns
true if the appender implementation requires a layout.
Implements log4tango::Appender.
void log4tango::LayoutAppender::set_layout (Layout * layout = 0) [virtual]
Change the layout. π¨ note the default argument β layout = 0 β so you can call it with nothing if you're feeling spicy (the manpage says so, not me).
Implements log4tango::Appender.
π«Ά Author π«Ά
Generated automatically by Doxygen for log4tango from the source code. (yes, the robots wrote it, no cap π€β¨)
and that's the whole page bestie!! every option, every signature, every[virtual]and[protected]tag, all accounted for π nothing skipped, nothing invented, we ate and left no crumbs π
Version 5.0.2 πΈ Thu Dec 5 2024 π and this was your girl log4tango::LayoutAppender(3) signing off β mwah, go read your logs π
ππ¦
π¦ where this page comes from
- debian bookworm: liblog4tango-doc 9.3.4+dfsg1-2+deb12u1 Β· LGPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms