log4tango::Layout(3)

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

πŸ’– 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 for Layout.
  • virtual ~Layout() β€” Destructor for Layout.
  • virtual std::string format(const LoggingEvent &event) β€” Formats the LoggingEvent data 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 β€” The LoggingEvent.

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