LOG4SHIB::OSTREAMAPPENDER(3)
πΈ NAME πΈ
log4shib::OstreamAppender β okay bestie, this is from the log4shib Library Functions manual, and the page tag is log4shib::...eamAppender(3). The appender appends LoggingEvents to ostreams. Periodt. π
β¨ SYNOPSIS β¨
#include <OstreamAppender.hh>
Inherits log4shib::LayoutAppender.
π Public Member Functions π
OstreamAppender (const std::string &name, std::ostream *stream)β constructor vibes, no extra description on the page.virtual ~OstreamAppender ()β destructor, also no extra description here.virtual bool reopen ()β Reopens the output destination of this Appender, e.g. the logfile or TCP socket. The full tea is down in the member docs.virtual void close ()β Release any resources allocated within the appender such as file handles, network connections, etc.
π¦ Public Member Functions inherited from log4shib::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 log4shib::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 log4shib::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 log4shib::LayoutAppender πΈ
Layout & _getLayout ()β Return the layout of the appender.
β Protected Member Functions inherited from log4shib::AppenderSkeleton β
AppenderSkeleton (const std::string &name)β Constructor for AppenderSkeleton.
π Protected Member Functions inherited from log4shib::Appender π
Appender (const std::string &name)β Constructor for Appender.
π Protected Attributes π
std::ostream * _stream
π«Ά Additional Inherited Members π«Ά
Public Types inherited from log4shib::LayoutAppender
typedef BasicLayout DefaultLayoutType
Static Public Member Functions inherited from log4shib::Appender
static Appender * getAppender (const std::string &name)β Get a pointer to an exitsing Appender. (Yes, βexitsingβ is exactly what the page says β I'm not fixing the typo, bestie.)static bool reopenAll ()β Callreopen()on all existing Appenders.static void closeAll ()β Callreopen()on all existing Appenders. (Again: the page literally saysreopen()here. I'm just relaying it exactly, no cap.)
π₯ Detailed Description π₯
OstreamAppender appends LoggingEvents to ostreams.
It's giving βoutput destination, but make it an ostream.β Iconic. β¨
π Constructor & Destructor Documentation π
log4shib::OstreamAppender::OstreamAppender (const std::string & name, std::ostream * stream)log4shib::OstreamAppender::~OstreamAppender () [virtual]
π Member Function Documentation π
void log4shib::OstreamAppender::_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 log4shib::AppenderSkeleton.
void log4shib::OstreamAppender::close () [virtual]
Release any resources allocated within the appender such as file handles, network connections, etc.
Implements log4shib::AppenderSkeleton.
bool log4shib::OstreamAppender::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. (βoccuredβ is preserved exactly, bestie β character for character.)
Reimplemented from log4shib::AppenderSkeleton.
π Member Data Documentation π
std::ostream* log4shib::OstreamAppender::_stream[protected]
π Author π
Generated automatically by Doxygen for log4shib from the source code.
That's the whole page, bestie β every function, inherited member, typo, and tiny detail is still here. π
Cute little footer sign-off: this is log4shib, Version 2.0.1, page tag log4shib::...eamAppender(3) β and that's the vibe check complete. ππ¦
π¦ where this page comes from
- opensuse-leap 16.0: liblog4shib-devel 2.0.1-160000.3.2 Β· LGPL-2.1-only
- opensuse-leap 16.0: liblog4shib-devel 2.0.1-160000.3.2 Β· LGPL-2.1-only
- opensuse-leap 16.0: liblog4shib-devel 2.0.1-160000.3.2 Β· LGPL-2.1-only
- opensuse-leap 16.0: liblog4shib-devel 2.0.1-160000.3.2 Β· 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