log4shib::Layout(3)

πŸ“¦ version 2.0.1, in opensuse-leap 16.0

okay so this is log4shib::Layout(3) from the log4shib Library Functions Manual, and it's literally the blueprint for making your own log layout format πŸ’…βœ¨

🌸 NAME 🌸

log4shib::Layout β€” extend this abstract class to create your own log layout format 🫢

πŸ’– SYNOPSIS πŸ’–

#include <Layout.hh>

Inherited by log4shib::BasicLayout, log4shib::PatternLayout, and log4shib::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. That's the whole vibe: this is the base class moment, bestie πŸ’œ

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

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

Destructor for Layout. Cleanup era, no cap 🧚

🌈 Member Function Documentation 🌈

virtual std::string log4shib::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 πŸ”₯

πŸ“ Parameters

  • event β€” The LoggingEvent.

✨ Returns

  • an appendable string.

Implemented in log4shib::BasicLayout, log4shib::PatternLayout, and log4shib::SimpleLayout πŸ’«

πŸ‘‘ Author πŸ‘‘

Generated automatically by Doxygen for log4shib from the source code. Iconic automated behavior fr fr πŸ€–πŸ’…


🫢 cute sign-off: this page comes from log4shib, Version 2.0.1, with footer title log4shib::Layout(3) β€” and there's no date listed on the page, so we're not inventing one, bestie πŸ’€βœ¨