log4tango::OstreamAppender(3)
π log4tango::OstreamAppender π
okay bestie, welcome to the log4tango manual, page for log4tango::OstreamAppender β¨ this one's a whole vibe β it's the appender that just... writes to a stream. simple, iconic, does exactly what it says on the tin π
πΈ NAME πΈ
log4tango::OstreamAppender β the appender that yeets your logging events straight into an std::ostream, no cap π
β¨ SYNOPSIS β¨
#include <OstreamAppender.hh>
Inherits log4tango::LayoutAppender. yep, it's got lineage π
π Public Member Functions
OstreamAppender(const std::string &name, std::ostream *stream)virtual ~OstreamAppender()virtual bool reopen()β Reopens the output destination of this Appender, e.g.virtual void close()β Release any resources allocated within the appender such as file handles, network connections, etc.
π Protected Member Functions
virtual int _append(const LoggingEvent &event)β Log in Appender specific way.
π«Ά Protected Attributes
std::ostream * _stream
π¦ Additional Inherited Members
she also has extra stuff inherited from her ancestors, iykyk β not listed here, but it's there π
π Constructor & Destructor Documentation π
log4tango::OstreamAppender::OstreamAppender(const std::string & name, std::ostream * stream)
the birth of an icon π hand her a name and a stream and she's ready to log.
log4tango::OstreamAppender::~OstreamAppender() [virtual]
and when it's time to go... she says goodbye, virtual-style π
π Member Function Documentation π
int log4tango::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 β The
LoggingEventto log.
Implements log4tango::Appender.
void log4tango::OstreamAppender::close() [virtual]
Release any resources allocated within the appender such as file handles, network connections, etc.
Implements log4tango::Appender.
girlie cleans up after herself, as she should π§
bool log4tango::OstreamAppender::reopen(void) [virtual]
Reopens the output destination of this Appender, e.g. the logfile or TCP socket.
Returns
falseif an error occurred during reopening,trueotherwise.
Reimplemented from log4tango::Appender.
π Member Data Documentation π
std::ostream* log4tango::OstreamAppender::_stream [protected]
the actual stream pointer she's obsessed with π that's the whole thing. that's the vibe.
π Author π
Generated automatically by Doxygen for log4tango from the source code.
and that's the whole page bestie!! π this was Version 5.0.2, dated Thu Dec 5 2024, brought to you by the log4tango manual β slay, periodt, go log something gorgeous β¨ππ¦
π¦ where this page comes from
- debian bookworm: liblog4tango-doc 9.3.4+dfsg1-2+deb12u1 Β· LGPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms