log4shib::...erSkeleton(3)
okay bestie, welcome to the log4shib::...erSkeleton(3) page from the log4shib Library Functions Manual β¨ this one is all about log4shib::AppenderSkeleton, and itβs lowkey iconic because it does the Threshold + Filter plumbing for you π
πΈ NAME πΈ
log4shib::AppenderSkeleton β so AppenderSkeleton is a helper class that simplifies implementing Appenders: it already takes care of handling Thresholds and Filters. π
β¨ SYNOPSIS β¨
#include <AppenderSkeleton.hh>
Inherits log4shib::Appender.
Inherited by log4shib::AbortAppender, log4shib::IdsaAppender, and log4shib::LayoutAppender.
π Public Member Functions π
virtual ~AppenderSkeleton ()β Destructor forAppenderSkeleton.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 theLayoutfor 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 aFilterfor this appender.virtual Filter * getFilter ()β Get theFilterfor this appender.
π«Ά Public Member Functions inherited from log4shib::Appender π«Ά
virtual ~Appender ()β Destructor forAppender.const std::string & getName () constβ Get the name of this appender.
π§ Protected Member Functions π§
AppenderSkeleton (const std::string &name)β Constructor forAppenderSkeleton.virtual void _append (const LoggingEvent &event)=0β Log in Appender specific way.
π Protected Member Functions inherited from log4shib::Appender π
Appender (const std::string &name)β Constructor forAppender.
π Additional Inherited Members π
β Static Public Member Functions inherited from log4shib::Appender β
static Appender * getAppender (const std::string &name)β Get a pointer to an exitsingAppender.static bool reopenAll ()β Callreopen()on all existing Appenders.static void closeAll ()β Callreopen()on all existing Appenders.
π Detailed Description π
AppenderSkeleton is a helper class that simplifies implementing Appenders: it already takes care of handling of Thresholds and Filters. Thatβs the whole vibe β you get the plumbing, and your subclass gets to be the main character. π
π Constructor & Destructor Documentation π
log4shib::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.
log4shib::AppenderSkeleton::~AppenderSkeleton () [virtual]
Destructor for AppenderSkeleton.
π¦ Member Function Documentation π¦
virtual void log4shib::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
LoggingEventto log.
Implemented in log4shib::AbortAppender, log4shib::FileAppender, log4shib::IdsaAppender, log4shib::NTEventLogAppender, log4shib::OstreamAppender, log4shib::RemoteSyslogAppender, log4shib::RollingFileAppender, log4shib::StringQueueAppender, log4shib::SyslogAppender, and log4shib::Win32DebugAppender.
virtual void log4shib::AppenderSkeleton::close () [pure virtual]
Release any resources allocated within the appender such as file handles, network connections, etc.
Implements log4shib::Appender.
Implemented in log4shib::AbortAppender, log4shib::FileAppender, log4shib::IdsaAppender, log4shib::NTEventLogAppender, log4shib::OstreamAppender, log4shib::RemoteSyslogAppender, log4shib::StringQueueAppender, log4shib::SyslogAppender, and log4shib::Win32DebugAppender.
void log4shib::AppenderSkeleton::doAppend (const LoggingEvent & event) [virtual]
Log in Appender specific way.
Parameters
- event β The
LoggingEventto log.
Implements log4shib::Appender.
Filter * log4shib::AppenderSkeleton::getFilter () [virtual]
Get the Filter for this appender.
Returns
- the filter, or
NULLif no filter has been set.
Implements log4shib::Appender.
Priority::Value log4shib::AppenderSkeleton::getThreshold () [virtual]
Get the threshold priority of this Appender.
Returns
- the threshold
Implements log4shib::Appender.
bool log4shib::AppenderSkeleton::reopen () [virtual]
Reopens the output destination of this Appender, e.g. the logfile or TCP socket.
Returns
falseif an error occured during reopening,trueotherwise.
Implements log4shib::Appender.
Reimplemented in log4shib::AbortAppender, log4shib::FileAppender, log4shib::IdsaAppender, log4shib::NTEventLogAppender, log4shib::OstreamAppender, log4shib::RemoteSyslogAppender, log4shib::StringQueueAppender, and log4shib::SyslogAppender.
virtual bool log4shib::AppenderSkeleton::requiresLayout () const [pure virtual]
Check if the appender uses a layout.
Returns
trueif the appender implementation requires a layout.
Implements log4shib::Appender.
Implemented in log4shib::AbortAppender, log4shib::IdsaAppender, and log4shib::LayoutAppender.
void log4shib::AppenderSkeleton::setFilter (Filter * filter) [virtual]
Set a Filter for this appender.
Implements log4shib::Appender.
virtual void log4shib::AppenderSkeleton::setLayout (Layout * layout) [pure virtual]
Set the Layout for this appender.
Parameters
- layout β The layout to use.
Implements log4shib::Appender.
Implemented in log4shib::AbortAppender, log4shib::IdsaAppender, and log4shib::LayoutAppender.
void log4shib::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 log4shib::Appender.
π Author π
Generated automatically by Doxygen for log4shib from the source code.
okay thatβs the whole page, bestie! source/version vibes: log4shib, Version 2.0.1; footer title: log4shib::...erSkeleton(3) β and thereβs no date in that footer, so Iβm not inventing one πβ¨
π¦ where this page comes from
- opensuse-leap 16.0: liblog4shib-devel 2.0.1-160000.3.2 Β· LGPL-2.1-only
- opensuse-leap 16.0: liblog4shib-devel 2.0.1-160000.3.2 Β· LGPL-2.1-only
- opensuse-leap 16.0: liblog4shib-devel 2.0.1-160000.3.2 Β· LGPL-2.1-only
- opensuse-leap 16.0: liblog4shib-devel 2.0.1-160000.3.2 Β· LGPL-2.1-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms