log4tango::LayoutAppender(3)

πŸ“¦
version 9.3.4 Β· 2 versions
, in debian bookworm

✨ 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's name 🫢
  • 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