log4shib::Appender(3)

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

✨ log4shib::Appender ✨

okay bestie, this is the log4shib::Appender(3) page from the Library Functions Manual. it's giving β€œinterface you implement when you want your own strategy for printing log statements,” and we're gonna go through every single member function like it's a group-chat recap. no cap. πŸ’–

🌸 NAME 🌸

log4shib::Appender β€” implement this interface for your own strategies for printing log statements. that's the whole point, bestie πŸ’…

✨ SYNOPSIS ✨

#include <Appender.hh>

Inherited by log4shib::AppenderSkeleton. πŸ¦‹

πŸ’… Public Member Functions πŸ’…

  • virtual ~Appender () β€” Destructor for Appender. πŸ’€
  • virtual void doAppend (const LoggingEvent &event)=0 β€” Log in Appender specific way. πŸ“
  • virtual bool reopen ()=0 β€” Reopens the output destination of this Appender, e.g. (the synopsis literally stops at e.g. β€” the full sentence is down below, iykyk πŸ‘€)
  • virtual void close ()=0 β€” Release any resources allocated within the appender such as file handles, network connections, etc. πŸ”’
  • virtual bool requiresLayout () const =0 β€” Check if the appender uses a layout. πŸŽ€
  • virtual void setLayout (Layout *layout)=0 β€” Set the Layout for this appender. πŸ–ΌοΈ
  • const std::string & getName () const β€” Get the name of this appender. 🏷️
  • virtual void setThreshold (Priority::Value priority)=0 β€” Set the threshold priority of this Appender. πŸ“Š
  • virtual Priority::Value getThreshold ()=0 β€” Get the threshold priority of this Appender. πŸ“ˆ
  • virtual void setFilter (Filter *filter)=0 β€” Set a Filter for this appender. 🧹
  • virtual Filter * getFilter ()=0 β€” Get the Filter for this appender. πŸ”

🌈 Static Public Member Functions 🌈

  • static Appender * getAppender (const std::string &name) β€” Get a pointer to an exitsing Appender. (their spelling, not mine 😭)
  • static bool reopenAll () β€” Call reopen() on all existing Appenders. πŸ”
  • static void closeAll () β€” Call reopen() on all existing Appenders. (yes, the closeAll description says reopen() too β€” that's what the page says πŸ‘€)

πŸŽ€ Protected Member Functions πŸŽ€

  • Appender (const std::string &name) β€” Constructor for Appender. 🌱

πŸ’œ Detailed Description πŸ’œ

Implement this interface for your own strategies for printing log statements. that's the assignment, bestie β€” make it yours. πŸ’–

🧚 Constructor & Destructor Documentation 🧚

πŸ’« log4shib::Appender::Appender (const std::string & name) [protected] πŸ’«

Constructor for Appender. Will only be used in getAppender() (and in derived classes of course).

Parameters

  • name β€” The name of this Appender.

πŸ’€ log4shib::Appender::~Appender () [virtual] πŸ’€

Destructor for Appender.

πŸ”₯ Member Function Documentation πŸ”₯

πŸ¦‹ virtual void log4shib::Appender::close () [pure virtual] πŸ¦‹

Release any resources allocated within the appender such as file handles, network connections, etc.

Implemented in: log4shib::AbortAppender, log4shib::AppenderSkeleton, log4shib::FileAppender, log4shib::IdsaAppender, log4shib::NTEventLogAppender, log4shib::OstreamAppender, log4shib::RemoteSyslogAppender, log4shib::StringQueueAppender, log4shib::SyslogAppender, and log4shib::Win32DebugAppender.

🌸 void log4shib::Appender::closeAll () [static] 🌸

Call reopen() on all existing Appenders.

Returns

  • true if all Appenders returned true on their reopen() call.

πŸŽ€ virtual void log4shib::Appender::doAppend (const LoggingEvent & event) [pure virtual] πŸŽ€

Log in Appender specific way.

Parameters

  • event β€” The LoggingEvent to log.

Implemented in: log4shib::AppenderSkeleton.

🫢 Appender * log4shib::Appender::getAppender (const std::string & name) [static] 🫢

Get a pointer to an exitsing Appender. (yes, β€œexitsing” is the original spelling, bestie 😭)

Parameters

  • name β€” The name of the Appender to return.

Returns

  • a pointer to an existing Appender, or NULL if no appender with the specfied name exists. (again: β€œspecfied” is their spelling πŸ’€)

πŸ’… virtual Filter * log4shib::Appender::getFilter () [pure virtual] πŸ’…

Get the Filter for this appender.

Returns

  • the filter, or NULL if no filter has been set.

Implemented in: log4shib::AppenderSkeleton.

⭐ const std::string & log4shib::Appender::getName () const [inline] ⭐

Get the name of this appender. The name identifies the appender.

Returns

  • the name of the appender.

πŸ‘‘ virtual Priority::Value log4shib::Appender::getThreshold () [pure virtual] πŸ‘‘

Get the threshold priority of this Appender.

Returns

  • the threshold

Implemented in: log4shib::AppenderSkeleton.

🧚 virtual bool log4shib::Appender::reopen () [pure virtual] 🧚

Reopens the output destination of this Appender, e.g. the logfile or TCP socket.

Returns

  • false if an error occured during reopening, true otherwise.

Implemented in: log4shib::AbortAppender, log4shib::AppenderSkeleton, log4shib::FileAppender, log4shib::IdsaAppender, log4shib::NTEventLogAppender, log4shib::OstreamAppender, log4shib::RemoteSyslogAppender, log4shib::StringQueueAppender, and log4shib::SyslogAppender.

🌈 bool log4shib::Appender::reopenAll () [static] 🌈

Call reopen() on all existing Appenders.

Returns

  • true if all Appenders returned true on their reopen() call.

πŸ¦‹ virtual bool log4shib::Appender::requiresLayout () const [pure virtual] πŸ¦‹

Check if the appender uses a layout.

Returns

  • true if the appender implementation requires a layout.

Implemented in: log4shib::AbortAppender, log4shib::AppenderSkeleton, log4shib::IdsaAppender, and log4shib::LayoutAppender.

πŸ“ virtual void log4shib::Appender::setFilter (Filter * filter) [pure virtual] πŸ“

Set a Filter for this appender.

Implemented in: log4shib::AppenderSkeleton.

🧚 virtual void log4shib::Appender::setLayout (Layout * layout) [pure virtual] 🧚

Set the Layout for this appender.

Parameters

  • layout β€” The layout to use.

Implemented in: log4shib::AbortAppender, log4shib::AppenderSkeleton, log4shib::IdsaAppender, and log4shib::LayoutAppender.

πŸ’œ virtual void log4shib::Appender::setThreshold (Priority::Value priority) [pure virtual] πŸ’œ

Set the threshold priority of this Appender. The Appender will not append LoggingEvents with a priority lower than the threshold. Use Priority::NOTSET to disable threshold checking.

Parameters

  • priority β€” The priority to set.

Implemented in: log4shib::AppenderSkeleton.

πŸ‘‘ Author πŸ‘‘

Generated automatically by Doxygen for log4shib from the source code. so no human author to tag β€” Doxygen ate and left no crumbs πŸ’…


sign-off bestie: this page is from log4shib Version 2.0.1 and its manual name is log4shib::Appender(3). the footer doesn't print a date here, so we're not inventing one β€” mwah πŸ’‹πŸ«Ά