log4tango::Layout(3)
π log4tango::Layout β bestie edition π
okay so this is a page from the log4tango manual, section 3, and it's all about log4tango::Layout. she's the base class, the blueprint, the blueprint-est blueprint. everything else is giving "I learned it from her." π
β¨ NAME β¨
log4tango::Layout β the abstract-ish parent class that every layout in log4tango inherits from. she doesn't log anything herself, she just sets the vibe (the format) that appenders then write out. icon behaviour, honestly. π
πΈ SYNOPSIS πΈ
#include <Layout.hh>
Inherited by log4tango::PatternLayout, and log4tango::XMLLayout.
π Public Member Functions π
Layout()β Constructor forLayout.virtual ~Layout()β Destructor forLayout.virtual std::string format(const LoggingEvent &event)β Formats theLoggingEventdata to a string that appenders can log.
π¦ Constructor & Destructor Documentation π¦
log4tango::Layout::Layout() [inline]
Constructor for Layout. literally just the beginning of her story, no cap. β¨
virtual log4tango::Layout::~Layout() [inline], [virtual]
Destructor for Layout. she's virtual, so she cleans up properly for all her daughters. respect. π«Ά
π Member Function Documentation π
std::string log4tango::Layout::format(const LoggingEvent & event) [virtual]
Formats the LoggingEvent data to a string that appenders can log. Overload this method to create your own layout format. yes bestie, this is the method β the main character moment. override her and make her your own. π
Parameters
eventβ TheLoggingEvent.
Returns
- an appendable string. (a string you can append. she said what she said. π )
Reimplemented in log4tango::PatternLayout, and log4tango::XMLLayout.
π§ Author π§
Generated automatically by Doxygen for log4tango from the source code. not a human, just a robot doing her little robot thing, and honestly? she ate. π€π
and that's the whole page, bestie, you're so welcome π this was Version 5.0.2, dated Thu Dec 5 2024, and ngl that date is giving cozy winter coding era βοΈβ¨ go forth and format your events, ily, mwah π«Άπ
π¦ 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