LOG4CPP::OSTREAMAPPENDER(3)

πŸ“¦
version 1.1.4 Β· 3 versions
, in opensuse-leap 16.0

πŸ¦‹ 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 the Layout for this appender. Default is NULL.

🌈 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. 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 for AppenderSkeleton.

πŸ“ Protected Member Functions inherited from log4cpp::Appender πŸ“

  • Appender (const std::string &name) β€” constructor for Appender.

🧚 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 () β€” call reopen() on all existing Appenders.
  • static void closeAll () β€” the original description says β€œCall reopen() 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 of Appender should implement this method to perform actual logging. Parameters: event β€” The LoggingEvent to log. Implements log4cpp::AppenderSkeleton.
  • void log4cpp::OstreamAppender::close () [virtual] β€” release any resources allocated within the appender such as file handles, network connections, etc. Implements log4cpp::AppenderSkeleton.
  • bool log4cpp::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. Reimplemented from log4cpp::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