log4cpp::B...ngAppender(3)
π log4cpp::BufferingAppender π
Ok bestie, welcome to the log4cpp::B...ngAppender(3) page from the Library Functions Manual β the title is giving truncated but iconic, but the actual class is log4cpp::BufferingAppender. Let's get into it. π«Ά
πΈ NAME πΈ
log4cpp::BufferingAppender
β¨ SYNOPSIS β¨
#include <BufferingAppender.hh>
Inherits log4cpp::LayoutAppender.
π«Ά Public Member Functions π«Ά
BufferingAppender (const std::string name, unsigned long max_size, std::LOG4CPP_UNIQUE_PTR< Appender > sink, std::LOG4CPP_UNIQUE_PTR< TriggeringEventEvaluator > evaluator)β constructor, bestie. β¨virtual void close ()β Release any resources allocated within the appender such as file handles, network connections, etc. πbool getLossy () constβ signature only on the page.void setLossy (bool lossy)β signature only, no extra prose.
π Public Member Functions inherited from log4cpp::LayoutAppender π
LayoutAppender (const std::string &name)β constructor.virtual ~LayoutAppender ()β destructor.virtual bool requiresLayout () constβ Check if the appender requires a layout. πvirtual void setLayout (Layout *layout=NULL)β Set theLayoutfor this appender.
π¦ Public Member Functions inherited from log4cpp::AppenderSkeleton π¦
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. (the sentence really stops there, no cap π)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 log4cpp::Appender π
virtual ~Appender ()β Destructor forAppender.const std::string & getName () constβ Get the name of this appender.
π Protected Member Functions π
virtual void _append (const LoggingEvent &event)β Log in Appender specific way.
π§ Protected Member Functions inherited from log4cpp::LayoutAppender π§
Layout & _getLayout ()β Return the layout of the appender.
π Protected Member Functions inherited from log4cpp::AppenderSkeleton π
AppenderSkeleton (const std::string &name)β Constructor forAppenderSkeleton.
π Protected Member Functions inherited from log4cpp::Appender π
Appender (const std::string &name)β Constructor forAppender.
π Additional Inherited Members π
π Public Types inherited from log4cpp::LayoutAppender π
typedef BasicLayout DefaultLayoutType
β Static Public Member Functions inherited from log4cpp::Appender β
static Appender * getAppender (const std::string &name)β Get a pointer to anexitsingAppender. (That typo is straight from the page, bestie π)static bool reopenAll ()β Callreopen()on all existing Appenders.static void closeAll ()β Callreopen()on all existing Appenders. (Yes, samereopen()again β the page said what it said π)
π Constructor & Destructor Documentation π
π BufferingAppender constructor π
log4cpp::BufferingAppender::BufferingAppender (const std::string name,
unsigned long max_size, std::LOG4CPP_UNIQUE_PTR< Appender > sink,
std::LOG4CPP_UNIQUE_PTR< TriggeringEventEvaluator > evaluator)
That's the constructor entry β no extra description on the page, just the signature. π«Ά
π₯ Member Function Documentation π₯
π¦ _append
void log4cpp::BufferingAppender::_append (const LoggingEvent & event)
[protected], [virtual]
Log in Appender specific way. Subclasses of Appender should implement this method to perform actual logging. β¨
Parameters
eventβ TheLoggingEventto log.
Implements log4cpp::AppenderSkeleton.
π¦ close
virtual void log4cpp::BufferingAppender::close () [inline], [virtual]
Release any resources allocated within the appender such as file handles, network connections, etc. π
Implements log4cpp::AppenderSkeleton.
π¦ getLossy
bool log4cpp::BufferingAppender::getLossy () const [inline]
Signature only on the page β no description, just vibes. π
π¦ setLossy
void log4cpp::BufferingAppender::setLossy (bool lossy) [inline]
Same here: signature only, bestie. β¨
β¨ Author β¨
Generated automatically by Doxygen for log4cpp from the source code.
That's the whole page! Footer check: log4cpp, Version 1.1, log4cpp::B...ngAppender(3). No date in the footer, so don't come for me β mwah! π
π¦ 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