LOG4CPP::OSTREAMAPPENDER(3)
π¦ log4cpp::OstreamAppender(3) π¦
okay bestie, welcome to the Library Functions Manual page for log4cpp::OstreamAppender. This is the appender that sends your LoggingEvents into an ostream β yes, that kind of stream. π
πΈ NAME πΈ
log4cpp::OstreamAppender β OstreamAppender appends LoggingEvents to ostreams. periodt. π«Ά
β¨ SYNOPSIS β¨
#include <OstreamAppender.hh>
Inherits log4cpp::LayoutAppender.
π Public Member Functions π
OstreamAppender (const std::string &name, std::ostream *stream)β constructor, takes a name and a pointer to the stream. No extra deets in the original, bestie.virtual ~OstreamAppender ()β virtual destructor.virtual bool reopen ()β reopens the output destination of this Appender, e.g. β¦ (the public list literally stops at βe.g.β; the detailed docs finish it as the logfile or TCP socket, iykyk).virtual void close ()β release any resources allocated within the appender such as file handles, network connections, etc. π§Ή
π« 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. Default isNULL.
π Public Member Functions inherited from log4cpp::AppenderSkeleton π
virtual ~AppenderSkeleton ()β destructor forAppenderSkeleton.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 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. This is the actual logging hook, bestie.
π 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.
π§ Protected Attributes π§
std::ostream * _streamβ the protected stream pointer. Main character energy for output. π
π 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. (yes, the original spells it βexitsingβ β weβre preserving the tea. π«)static bool reopenAll ()β callreopen()on all existing Appenders.static void closeAll ()β the original description says βCallreopen()on all existing Appenders.β Thatβs what it says, bestie. Not me fixing it. π
πΈ Detailed Description πΈ
OstreamAppender appends LoggingEvents to ostreams. Thatβs the whole vibe β itβs an appender that writes to an ostream. π¦
β¨ Constructor & Destructor Documentation β¨
log4cpp::OstreamAppender::OstreamAppender (const std::string & name, std::ostream * stream)β constructor. No extra description in the original.log4cpp::OstreamAppender::~OstreamAppender () [virtual]β virtual destructor. No extra description in the original.
π₯ Member Function Documentation π₯
void log4cpp::OstreamAppender::_append (const LoggingEvent & event) [protected], [virtual]β log in Appender-specific way. Subclasses ofAppendershould implement this method to perform actual logging. Parameters:eventβ TheLoggingEventto log. Implementslog4cpp::AppenderSkeleton.void log4cpp::OstreamAppender::close () [virtual]β release any resources allocated within the appender such as file handles, network connections, etc. Implementslog4cpp::AppenderSkeleton.bool log4cpp::OstreamAppender::reopen () [virtual]β reopens the output destination of this Appender, e.g. the logfile or TCP socket. Returns:falseif an error occured during reopening,trueotherwise. Reimplemented fromlog4cpp::AppenderSkeleton.
π«Ά Member Data Documentation π«Ά
std::ostream* log4cpp::OstreamAppender::_stream [protected]β the protected ostream pointer. Thatβs it, thatβs the data. π
π§ Author π§
Generated automatically by Doxygen for log4cpp from the source code.
bestie sign-off: this page is from log4cpp, Version 1.1, and the footer also repeats log4cpp::OstreamAppender(3). Thereβs no date printed on the page, so the date slot is a lil blank β no cap, thatβs just what the footer gives us. π
β¨
π¦ 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