log4cpp::F...rComponent(3)

πŸ“¦
version 1.1.4 Β· 3 versions
, in opensuse-leap 16.0

πŸ’… NAME

log4cpp::FormatModifierComponent β€” bestie, this is the little layout gremlin that handles the width-and-alignment glow-up for your log output ✨


πŸŽ€ SYNOPSIS

Inherits log4cpp::PatternLayout::PatternComponent. That's its whole ancestry, no cap β€” it's a PatternComponent girlie through and through, and it did inherit those genes.

🌸 Public Member Functions

  • FormatModifierComponent (PatternLayout::PatternComponent *component, size_t minWidth, size_t maxWidth, bool alignLeft) β€” the constructor, it's giving "build me a formatted component" energy
  • virtual ~FormatModifierComponent () β€” the destructor, virtual, so it cleans up properly like the icon it is
  • virtual void append (std::ostringstream &out, const LoggingEvent &event) β€” literally writes the formatted thing into the stream πŸ’–

🫢 Public Member Functions inherited from log4cpp::PatternLayout::PatternComponent

  • virtual ~PatternComponent () β€” yeah the parent class's virtual destructor, inherited, obviously. Family trait πŸ‘‘

🧚 Constructor & Destructor Documentation

🌈 log4cpp::FormatModifierComponent::FormatModifierComponent

(PatternLayout::PatternComponent * component,
 size_t minWidth,
 size_t maxWidth,
 bool alignLeft) [inline]

That's the whole signature, bestie β€” component, minWidth, maxWidth, alignLeft, all of it, and yes it's marked [inline] 😌

⭐ virtual log4cpp::FormatModifierComponent::~FormatModifierComponent ()

[inline], [virtual]

The destructor! [inline] and [virtual] β€” double threat, ate that, periodt πŸ”₯


πŸ‘‘ Member Function Documentation

πŸ’œ virtual void log4cpp::FormatModifierComponent::append

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

Implements log4cpp::PatternLayout::PatternComponent. That's the tea β€” append here is doing what the parent class promised it would do πŸŽ€


πŸ’€ Author

Generated automatically by Doxygen for log4cpp from the source code. Not me manually typing this out with my little claws, the tooling did that πŸ™ˆ


Fr fr, this page was served up as log4cpp::F...rComponent(3) from the Library Functions Manual, and it's log4cpp Version 1.1 β€” k bye, slay, go format something pretty πŸ’…βœ¨πŸŽ€πŸ¦‹
πŸ“¦ where this page comes from