log4cpp::LayoutAppender(3)

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

πŸ’… log4cpp::LayoutAppender πŸ’…

okay bestie, this is the log4cpp::LayoutAppender(3) page from the Library Functions Manual β€” manual-name energy folded in right at the top πŸŽ€. It’s giving β€œC++ logging superclass realness,” and we’re gonna get through every single detail together. No cap.


✨ NAME ✨

log4cpp::LayoutAppender β€” the common superclass for all Appenders that require a Layout. Periodt.


🌸 SYNOPSIS 🌸

#include <LayoutAppender.hh>

Inherits log4cpp::AppenderSkeleton.

Inherited by log4cpp::BufferingAppender, log4cpp::FileAppender, log4cpp::OstreamAppender, log4cpp::RemoteSyslogAppender, log4cpp::StringQueueAppender, log4cpp::SyslogAppender, and log4cpp::Win32DebugAppender.

πŸŽ€ Public Types πŸŽ€

typedef BasicLayout DefaultLayoutType

🫢 Public Member Functions 🫢

  • LayoutAppender (const std::string &name) β€” the constructor, bestie.
  • virtual ~LayoutAppender () β€” the virtual 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 log4cpp::AppenderSkeleton πŸ’–

  • virtual ~AppenderSkeleton () β€” destructor for AppenderSkeleton.
  • virtual void doAppend (const LoggingEvent &event) β€” log in Appender-specific way.
  • virtual bool reopen () β€” reopens the output destination of this Appender, e.g. (yep, the original sentence trails off there 😭)
  • virtual void close ()=0 β€” release any resources allocated within the appender such as file handles, network connections, etc.
  • 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 🧚

  • Layout & _getLayout () β€” return the layout of the appender.

🧚 Protected Member Functions inherited from log4cpp::AppenderSkeleton 🧚

  • AppenderSkeleton (const std::string &name) β€” constructor for AppenderSkeleton.
  • virtual void _append (const LoggingEvent &event)=0 β€” log in Appender-specific way.

🧚 Protected Member Functions inherited from log4cpp::Appender 🧚

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

🌈 Additional Inherited Members 🌈

⭐ Static Public Member Functions inherited from log4cpp::Appender ⭐

  • static Appender * getAppender (const std::string &name) β€” get a pointer to an exitsing Appender (that spelling is literally in the original, bestie πŸ‘€).
  • static bool reopenAll () β€” call reopen() on all existing Appenders.
  • static void closeAll () β€” call reopen() on all existing Appenders. (Yep, that’s what it says under closeAll β€” I’m just the messenger πŸ’€.)

πŸ’« Detailed Description πŸ’«

LayoutAppender is a common superclass for all Appenders that require a Layout. That’s the whole main-character job, honestly.


πŸ¦‹ Member Typedef Documentation πŸ¦‹

typedef BasicLayout log4cpp::LayoutAppender::DefaultLayoutType

πŸŽ€ Constructor & Destructor Documentation πŸŽ€

  • log4cpp::LayoutAppender::LayoutAppender (const std::string & name)
  • log4cpp::LayoutAppender::~LayoutAppender () [virtual]

πŸ’… Member Function Documentation πŸ’…

🫢 Layout & log4cpp::LayoutAppender::_getLayout () [protected]

Return the layout of the appender. This method is the Layout accessor for subclasses of LayoutAppender.

Returns: the Layout.

✨ bool log4cpp::LayoutAppender::requiresLayout () const [virtual]

Check if the appender requires a layout. All LayoutAppenders do, therefore this method returns true for all subclasses.

Returns: true.

Implements: log4cpp::AppenderSkeleton.

🌸 void log4cpp::LayoutAppender::setLayout (Layout * layout = NULL) [virtual]

Set the Layout for this appender.

Parameters: layout β€” the layout to use.

Implements: log4cpp::AppenderSkeleton.


πŸ“œ Author πŸ“œ

Generated automatically by Doxygen for log4cpp from the source code.


✨ That’s the whole page, bestie! Source/version: log4cpp, Version 1.1. Date: not shown on this page β€” the footer is keeping that mysterious πŸ™ˆ, and I’m not inventing one. Bye! πŸ’–

πŸ“¦ where this page comes from