log4tango::OstreamAppender(3)

πŸ“¦
version 9.3.4 Β· 2 versions
, in debian bookworm

πŸ’– 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 LoggingEvent to 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

  • false if an error occurred during reopening, true otherwise.

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