log4cpp::AbortAppender(3)
π 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,exitsingis literally in the original text, and Iβm not fixing it, periodt. π)static bool reopenAll ()β Callreopen()on all existing Appenders.static void closeAll ()β Callreopen()on all existing Appenders. (Yes, thatβs the same wording asreopenAll()β 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
- 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