log4cpp::B...ngAppender(3)

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

πŸ’– 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 the Layout for this appender.

πŸ¦‹ Public Member Functions inherited from log4cpp::AppenderSkeleton πŸ¦‹

  • 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. (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 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 πŸŽ€

  • 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 for AppenderSkeleton.

🐚 Protected Member Functions inherited from log4cpp::Appender 🐚

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

πŸ‘‘ 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 an exitsing Appender. (That typo is straight from the page, bestie 😭)
  • static bool reopenAll () β€” Call reopen() on all existing Appenders.
  • static void closeAll () β€” Call reopen() on all existing Appenders. (Yes, same reopen() 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 β€” The LoggingEvent to 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