log4cpp::AbortAppender(3)

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

πŸ’– log4cpp::AbortAppender(3) πŸ’–

Okay bestie, welcome to the Library Functions Manual page for log4cpp::AbortAppender(3). This one is a whole mood: an appender whose entire personality is β€œcall abort() on the first append() call.” Iconic? Maybe. Dramatic? Absolutely. πŸ’…

πŸ’– NAME πŸ’–

log4cpp::AbortAppender β€” This Appender causes the application to abort() upon the first append() call. That’s the whole vibe, no cap. 😭

✨ SYNOPSIS ✨

#include <AbortAppender.hh>

Inherits log4cpp::AppenderSkeleton.

🫢 Public Member Functions 🫢

  • AbortAppender (const std::string &name) β€” constructor energy ✨
  • virtual ~AbortAppender () β€” destructor, bye bestie πŸŽ€
  • virtual bool reopen () β€” Reopens the output destination of this Appender, e.g. (the full sentence is lower down, keep reading πŸ’–)
  • virtual void close () β€” Release any resources allocated within the appender such as file handles, network connections, etc.
  • virtual bool requiresLayout () const β€” The AbortAppender does not layout.
  • virtual void setLayout (Layout *layout) β€” 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 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::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 🌈

Static Public Member Functions inherited from log4cpp::Appender

  • static Appender * getAppender (const std::string &name) β€” Get a pointer to an exitsing Appender. (Yes, exitsing is literally in the original text, and I’m not fixing it, periodt. πŸ™ˆ)
  • static bool reopenAll () β€” Call reopen() on all existing Appenders.
  • static void closeAll () β€” Call reopen() on all existing Appenders. (Yes, that’s the same wording as reopenAll() β€” that’s what the page says, bestie. πŸ’€)

πŸ”₯ Detailed Description πŸ”₯

This Appender causes the application to abort() upon the first append() call.

Bestie, this is not a drill: the app aborts on the first append. That is the entire point of this appender. πŸ’…

Since

0.3.5

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

  • log4cpp::AbortAppender::AbortAppender (const std::string & name)
  • log4cpp::AbortAppender::~AbortAppender () [virtual]

⭐ Member Function Documentation ⭐

πŸ’– _append

void log4cpp::AbortAppender::_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

void log4cpp::AbortAppender::close () [virtual]

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

Implements log4cpp::AppenderSkeleton.

πŸ’– reopen

bool log4cpp::AbortAppender::reopen () [virtual]

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

Returns

false if an error occured during reopening, true otherwise. (Keeping that occured spelling exactly as the page has it, bestie. 🫢)

Reimplemented from log4cpp::AppenderSkeleton.

πŸ’– requiresLayout

bool log4cpp::AbortAppender::requiresLayout () const [virtual]

The AbortAppender does not layout.

Returns

false

Implements log4cpp::AppenderSkeleton.

πŸ’– setLayout

void log4cpp::AbortAppender::setLayout (Layout * layout) [virtual]

Set the Layout for this appender.

Parameters

  • layout β€” The layout to use.

Implements log4cpp::AppenderSkeleton.

πŸ‘‘ Author πŸ‘‘

Generated automatically by Doxygen for log4cpp from the source code.


Okay bestie, that’s the whole page πŸ’œ. The footer tea is log4cpp, Version 1.1 β€” and there’s no date line in this original footer, so I’m not inventing one, periodt ✨🫢

πŸ“¦ where this page comes from