log4cpp::Appender(3)
πΈ NAME πΈ
okay so this is the log4cpp::Appender(3) page from the Library Functions Manual β it's the log4cpp::Appender interface, and the whole vibe is: Implement this interface for your own strategies for printing log statements. periodt π
β¨ SYNOPSIS β¨
#include <Appender.hh>
Inherited by log4cpp::AppenderSkeleton.
π«Ά Classes
class AppenderMapStorageclass AppenderMapStorageInitializer
π 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.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.static bool reopenAll ()β Callreopen()on all existing Appenders.static void closeAll ()β Callreopen()on all existing Appenders.
π Protected Member Functions
Appender (const std::string &name)β Constructor for Appender.
π Friends
class Category
π Detailed Description π
Implement this interface for your own strategies for printing log statements. that's the whole assignment, bestie β this is the interface energy π
π§ Constructor & Destructor Documentation π§
log4cpp::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.
log4cpp::Appender::~Appender () [virtual]
Destructor for Appender.
πΊ Member Function Documentation πΊ
virtual void log4cpp::Appender::close () [pure virtual]
Release any resources allocated within the appender such as file handles, network connections, etc.
Implemented in log4cpp::AbortAppender, log4cpp::AppenderSkeleton, log4cpp::BufferingAppender, log4cpp::FileAppender, log4cpp::IdsaAppender, log4cpp::NTEventLogAppender, log4cpp::OstreamAppender, log4cpp::RemoteSyslogAppender, log4cpp::StringQueueAppender, log4cpp::SyslogAppender, and log4cpp::Win32DebugAppender.
void log4cpp::Appender::closeAll () [static]
Call reopen() on all existing Appenders.
Returns:
trueif all Appenders returnedtrueon theirreopen()call.
virtual void log4cpp::Appender::doAppend (const LoggingEvent & event) [pure virtual]
Log in Appender specific way.
Parameters:
- event β The
LoggingEventto log.
Implemented in log4cpp::AppenderSkeleton.
Appender * log4cpp::Appender::getAppender (const std::string & name) [static]
Get a pointer to an exitsing Appender.
Parameters:
- name β The name of the Appender to return.
Returns:
- a pointer to an existing Appender, or
NULLif no appender with the specfied name exists.
virtual Filter * log4cpp::Appender::getFilter () [pure virtual]
Get the Filter for this appender.
Returns:
- the filter, or
NULLif no filter has been set.
Implemented in log4cpp::AppenderSkeleton.
const std::string & log4cpp::Appender::getName () const [inline]
Get the name of this appender. The name identifies the appender.
Returns:
- the name of the appender.
virtual Priority::Value log4cpp::Appender::getThreshold () [pure virtual]
Get the threshold priority of this Appender.
Returns:
- the threshold
Implemented in log4cpp::AppenderSkeleton.
virtual bool log4cpp::Appender::reopen () [pure virtual]
Reopens the output destination of this Appender, e.g. the logfile or TCP socket.
Returns:
falseif an error occured during reopening,trueotherwise.
Implemented in log4cpp::AbortAppender, log4cpp::AppenderSkeleton, log4cpp::FileAppender, log4cpp::IdsaAppender, log4cpp::NTEventLogAppender, log4cpp::OstreamAppender, log4cpp::RemoteSyslogAppender, log4cpp::StringQueueAppender, and log4cpp::SyslogAppender.
bool log4cpp::Appender::reopenAll () [static]
Call reopen() on all existing Appenders.
Returns:
trueif all Appenders returnedtrueon theirreopen()call.
virtual bool log4cpp::Appender::requiresLayout () const [pure virtual]
Check if the appender uses a layout.
Returns:
trueif the appender implementation requires a layout.
Implemented in log4cpp::AbortAppender, log4cpp::AppenderSkeleton, log4cpp::IdsaAppender, log4cpp::LayoutAppender, and log4cpp::NTEventLogAppender.
virtual void log4cpp::Appender::setFilter (Filter * filter) [pure virtual]
Set a Filter for this appender.
Implemented in log4cpp::AppenderSkeleton.
virtual void log4cpp::Appender::setLayout (Layout * layout) [pure virtual]
Set the Layout for this appender.
Parameters:
- layout β The layout to use.
Implemented in log4cpp::AbortAppender, log4cpp::AppenderSkeleton, log4cpp::IdsaAppender, log4cpp::LayoutAppender, and log4cpp::NTEventLogAppender.
virtual void log4cpp::Appender::setThreshold (Priority::Value priority) [pure 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.
Implemented in log4cpp::AppenderSkeleton.
π¦ Friends And Related Symbol Documentation π¦
friend class Category [friend]
π Author π
Generated automatically by Doxygen for log4cpp from the source code.
byeee bestie π«Άπ this was log4cpp::Appender(3) from the log4cpp Version 1.1 source/version footer β the original footer doesn't show a date, so I'm not inventing one π β and the author note is literally that it was generated automatically by Doxygen for log4cpp from the source code. slay. π
π¦ where this page comes from
- opensuse-leap 16.0: log4cpp-devel 1.1.4-bp160.1.12 Β· LGPL-2.1-only
- opensuse-leap 16.0: log4cpp-devel 1.1.4-bp160.1.12 Β· LGPL-2.1-only
- opensuse-leap 16.0: log4cpp-devel 1.1.4-bp160.1.12 Β· LGPL-2.1-only
- opensuse-leap 16.0: log4cpp-devel 1.1.4-bp160.1.12 Β· 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