LOG4CPP::APPENDERSKELETON(3)

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

okay so welcome to log4cpp::A...derSkeleton(3) from the Library Functions Manual β€” it’s giving helper-class realness, and we’re gonna get through every single member function together, no cap πŸ’…βœ¨

πŸ’– NAME πŸ’–

log4cpp::AppenderSkeleton β€” AppenderSkeleton is a helper class, simplifying implementation of Appenders: it already takes care of handling of Thresholds and Filters. basically it’s the bestie that does the boring threshold/filter admin for you 🫢

✨ SYNOPSIS ✨

#include <AppenderSkeleton.hh>

Inherits log4cpp::Appender.

Inherited by log4cpp::AbortAppender, log4cpp::IdsaAppender, log4cpp::LayoutAppender, and log4cpp::NTEventLogAppender.

🌸 Public Member Functions 🌸

  • virtual ~AppenderSkeleton () β€” Destructor for AppenderSkeleton. πŸ’€
  • virtual void doAppend (const LoggingEvent &event) β€” Log in Appender specific way.
  • virtual bool reopen () β€” Reopens the output destination of this Appender, e.g.
  • 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.
  • virtual void setThreshold (Priority::Value priority) β€” Set the threshold priority of this Appender.
  • virtual Priority::Value getThreshold () β€” Get the threshold priority of this Appender.
  • virtual void setFilter (Filter *filter) β€” Set a Filter for this appender.
  • virtual Filter * getFilter () β€” Get the Filter for this appender.

🫢 Public Member Functions inherited from log4cpp::Appender

  • virtual ~Appender () β€” Destructor for Appender.
  • const std::string & getName () const β€” Get the name of this appender.

πŸŽ€ Protected Member Functions πŸŽ€

  • AppenderSkeleton (const std::string &name) β€” Constructor for AppenderSkeleton.
  • virtual void _append (const LoggingEvent &event)=0 β€” Log in Appender specific way.

🫢 Protected Member Functions inherited from log4cpp::Appender

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

🌈 Additional Inherited Members 🌈

⭐ Static Public Member Functions inherited from log4cpp::Appender

  • static Appender * getAppender (const std::string &name) β€” Get a pointer to an exitsing Appender. (yes, exitsing β€” I’m just the messenger 😭)
  • static bool reopenAll () β€” Call reopen() on all existing Appenders.
  • static void closeAll () β€” Call reopen() on all existing Appenders. (the original page literally says reopen() here too β€” not me, bestie πŸ’€)

πŸ”₯ Detailed Description πŸ”₯

AppenderSkeleton is a helper class, simplifying implementation of Appenders: it already takes care of handling of Thresholds and Filters. iconic behavior, honestly πŸ‘‘

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

🧚 log4cpp::AppenderSkeleton::AppenderSkeleton (const std::string & name)

protected 🫣

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

Parameters

  • name β€” The name of this Appender.

πŸ’€ log4cpp::AppenderSkeleton::~AppenderSkeleton ()

virtual

Destructor for AppenderSkeleton.

πŸ’… Member Function Documentation πŸ’…

✨ virtual void log4cpp::AppenderSkeleton::_append (const LoggingEvent & event)

protected, pure virtual

Log in Appender specific way. Subclasses of Appender should implement this method to perform actual logging.

Parameters

  • event β€” The LoggingEvent to log.

Implemented in log4cpp::AbortAppender, log4cpp::BufferingAppender, log4cpp::DailyRollingFileAppender, log4cpp::FileAppender, log4cpp::IdsaAppender, log4cpp::NTEventLogAppender, log4cpp::OstreamAppender, log4cpp::RemoteSyslogAppender, log4cpp::RollingFileAppender, log4cpp::StringQueueAppender, log4cpp::SyslogAppender, and log4cpp::Win32DebugAppender.

🧨 virtual void log4cpp::AppenderSkeleton::close ()

pure virtual

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

Implements log4cpp::Appender.

Implemented in log4cpp::AbortAppender, log4cpp::BufferingAppender, log4cpp::FileAppender, log4cpp::IdsaAppender, log4cpp::NTEventLogAppender, log4cpp::OstreamAppender, log4cpp::RemoteSyslogAppender, log4cpp::StringQueueAppender, log4cpp::SyslogAppender, and log4cpp::Win32DebugAppender.

πŸ¦‹ void log4cpp::AppenderSkeleton::doAppend (const LoggingEvent & event)

virtual

Log in Appender specific way.

Parameters

  • event β€” The LoggingEvent to log.

Implements log4cpp::Appender.

πŸ“ Filter * log4cpp::AppenderSkeleton::getFilter ()

virtual

Get the Filter for this appender.

Returns

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

Implements log4cpp::Appender.

⭐ Priority::Value log4cpp::AppenderSkeleton::getThreshold ()

virtual

Get the threshold priority of this Appender.

Returns

  • the threshold

Implements log4cpp::Appender.

πŸ¦‹ bool log4cpp::AppenderSkeleton::reopen ()

virtual

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

Returns

  • false if an error occured during reopening (their spelling, not mine πŸ™ˆ), true otherwise.

Implements log4cpp::Appender.

Reimplemented in log4cpp::AbortAppender, log4cpp::FileAppender, log4cpp::IdsaAppender, log4cpp::NTEventLogAppender, log4cpp::OstreamAppender, log4cpp::RemoteSyslogAppender, log4cpp::StringQueueAppender, and log4cpp::SyslogAppender.

🌸 virtual bool log4cpp::AppenderSkeleton::requiresLayout () const

pure virtual

Check if the appender uses a layout.

Returns

  • true if the appender implementation requires a layout.

Implements log4cpp::Appender.

Implemented in log4cpp::AbortAppender, log4cpp::IdsaAppender, log4cpp::LayoutAppender, and log4cpp::NTEventLogAppender.

πŸŽ€ void log4cpp::AppenderSkeleton::setFilter (Filter * filter)

virtual

Set a Filter for this appender.

Implements log4cpp::Appender.

🌈 virtual void log4cpp::AppenderSkeleton::setLayout (Layout * layout)

pure virtual

Set the Layout for this appender.

Parameters

  • layout β€” The layout to use.

Implements log4cpp::Appender.

Implemented in log4cpp::AbortAppender, log4cpp::IdsaAppender, log4cpp::LayoutAppender, and log4cpp::NTEventLogAppender.

πŸ”₯ void log4cpp::AppenderSkeleton::setThreshold (Priority::Value priority)

virtual

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

Parameters

  • priority β€” The priority to set.

Implements log4cpp::Appender.

πŸ‘‘ Author πŸ‘‘

Generated automatically by Doxygen for log4cpp from the source code.


that’s the whole page, bestie β€” source/version situation is log4cpp, Version 1.1; the footer doesn’t show a date, so I’m not inventing one πŸ˜­βœ¨πŸ’–

πŸ“¦ where this page comes from