log4tango::For...ifierComponent(3)

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

πŸ’– NAME πŸ’–

log4tango::FormatModifierComponent β€” the lil pattern-layout glow-up that wraps another component and pads/trims it to fit, bestie. This page lives in the log4tango manual, section 3.


✨ SYNOPSIS ✨

Inherits log4tango::PatternLayout::PatternComponent. So it's a PatternComponent that's also holding a PatternComponent. Nested main character energy, we love to see it. 🫢

πŸŽ€ Public Member Functions

  • FormatModifierComponent(PatternLayout::PatternComponent *component, int minWidth, int maxWidth) β€” build one, hand it a component to babysit plus the min and max width.
  • virtual ~FormatModifierComponent() β€” virtual destructor, she cleans up properly. πŸ’…
  • virtual void append(std::ostringstream &out, const LoggingEvent &event) β€” writes the formatted output into the stream.

🌸 Constructor & Destructor Documentation 🌸

πŸ’œ log4tango::FormatModifierComponent::FormatModifierComponent

FormatModifierComponent(PatternLayout::PatternComponent *component,
                        int minWidth,
                        int maxWidth) [inline]

Takes a component to wrap, a minWidth, and a maxWidth. It's [inline], periodt.

πŸ¦‹ virtual log4tango::FormatModifierComponent::~FormatModifierComponent()

virtual ~FormatModifierComponent() [inline], [virtual]

The destructor. Marked [inline] and [virtual], no cap. She says goodbye with grace. 😭


🌈 Member Function Documentation 🌈

⭐ virtual void log4tango::FormatModifierComponent::append(std::ostringstream &out, const LoggingEvent &event)

virtual void append(std::ostringstream &out, const LoggingEvent &event)
    [inline], [virtual]

The one job: take an out stream and an event, do the appending thing.

Implements log4tango::PatternLayout::PatternComponent. That's the whole note β€” it's fulfilling the interface promise, iykyk. ✨

πŸ‘‘ Author πŸ‘‘

Generated automatically by Doxygen for log4tango from the source code. Not a human author, just Doxygen doing its little robot thing. πŸ€–πŸ’–


Version 5.0.2 Β· Thu Dec 5

That's the whole page, bestie β€” Doxygen-generated, version 5.0.2, dated Thu Dec 5, straight out of the log4tango source code. Slay, go format something. πŸŽ€βœ¨πŸ’…

πŸ“¦ where this page comes from