log4cpp::Layout(3)

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

okay so bestie, welcome to log4cpp::Layout(3) from the Library Functions Manual 🫢 β€” this is the abstract layout class situation in log4cpp, and it's lowkey iconic.

🌸 NAME 🌸

log4cpp::Layout β€” extend this abstract class to create your own log layout format. That's the whole assignment, no cap. πŸ’…

✨ SYNOPSIS ✨

#include <Layout.hh>

Inherited by log4cpp::BasicLayout, log4cpp::PassThroughLayout, log4cpp::PatternLayout, and log4cpp::SimpleLayout.

🫢 Public Member Functions 🫢

  • virtual ~Layout () β€” Destructor for Layout.
  • virtual std::string format (const LoggingEvent &event)=0 β€” Formats the LoggingEvent data to a string that appenders can log.

πŸ¦‹ Detailed Description πŸ¦‹

Extend this abstract class to create your own log layout format. Literally that's the vibe: this is the base you extend when you want a custom log layout. Slay. πŸ’–

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

virtual log4cpp::Layout::~Layout () [inline], [virtual]

Destructor for Layout. πŸ’€

πŸ”₯ Member Function Documentation πŸ”₯

virtual std::string log4cpp::Layout::format (const LoggingEvent & event) [pure virtual]

Formats the LoggingEvent data to a string that appenders can log. Implement this method to create your own layout format. This one is pure virtual, so you're the main character who has to write it. πŸ‘‘

Parameters

  • event β€” The LoggingEvent.

Returns

an appendable string. ✨

Implemented in log4cpp::BasicLayout, log4cpp::PassThroughLayout, log4cpp::PatternLayout, and log4cpp::SimpleLayout.

πŸ’œ Author πŸ’œ

Generated automatically by Doxygen for log4cpp from the source code.


✨ okay that's the whole page, bestie β€” log4cpp::Layout(3), Version 1.1 from log4cpp. No date printed on this footer, so that's the cute sign-off. πŸ’–

πŸ“¦ where this page comes from