log4tango::Pat...tternComponent(3)

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

πŸ’– NAME πŸ’–

log4tango::PatternLayout::PatternComponent β€” bestie, it's the abstract base class at the heart of the pattern layout situation ✨


🌸 SYNOPSIS 🌸

#include <PatternLayout.hh>

So like, you pull in the header and then…

Inherited by log4tango::FormatModifierComponent, log4tango::LevelComponent, log4tango::LoggerNameComponent, log4tango::MessageComponent, log4tango::MillisSinceEpochComponent, log4tango::ProcessorTimeComponent, log4tango::SecondsSinceEpochComponent, log4tango::StringLiteralComponent, log4tango::ThreadIdComponent, log4tango::ThreadNameComponent, and log4tango::TimeStampComponent. πŸ¦‹

Like it's literally the mom friend of the whole component squad. Everybody inherits from her. Queen behaviour πŸ‘‘

✨ Public Member Functions ✨

  • virtual ~PatternComponent() β€” the destructor, doing its lil cleanup moment πŸ’…
  • virtual void append(std::ostringstream &out, const LoggingEvent &event)=0 β€” the pure virtual one, aka the assignment every child class has to do or it doesn't get to sit with us πŸŽ€

πŸŽ€ Constructor & Destructor Documentation πŸŽ€

virtual log4tango::PatternLayout::PatternComponent::~PatternComponent()

[inline], [virtual] β€” yeah bestie, inline and virtual, she contains multitudes πŸ’œ


πŸ”₯ Member Function Documentation πŸ”₯

virtual void log4tango::PatternLayout::PatternComponent::append(std::ostringstream &out, const LoggingEvent &event) [pure virtual]

Implemented in log4tango::StringLiteralComponent, log4tango::ProcessorTimeComponent, log4tango::LoggerNameComponent, log4tango::MessageComponent, log4tango::LevelComponent, log4tango::ThreadNameComponent, log4tango::ThreadIdComponent, log4tango::TimeStampComponent, log4tango::SecondsSinceEpochComponent, log4tango::MillisSinceEpochComponent, and log4tango::FormatModifierComponent. 🌈

Ngl, it's pure virtual, so you cannot just instantiate PatternComponent on its own β€” no cap, it's giving "abstract" and it means it. You gotta go through one of the subclasses up there. 😭

πŸ‘‘ Author πŸ‘‘

Generated automatically by Doxygen for log4tango from the source code. So nobody hand-wrote this, the robot did it, and honestly? She ate. πŸ€–πŸ’…


Okay so that's the whole vibe check on log4tango::Pat...tternComponent(3) from the log4tango manual β€” Version 5.0.2, dated Thu Dec 5. Slay, go forth and subclass responsibly, bestie πŸ«Άβœ¨πŸŽ€

πŸ“¦ where this page comes from