log4cpp::LayoutAppender(3)
π 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 theLayoutfor this appender.
π Public Member Functions inherited from log4cpp::AppenderSkeleton π
virtual ~AppenderSkeleton ()β destructor forAppenderSkeleton.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 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 π§
Layout & _getLayout ()β return the layout of the appender.
π§ Protected Member Functions inherited from log4cpp::AppenderSkeleton π§
AppenderSkeleton (const std::string &name)β constructor forAppenderSkeleton.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 forAppender.
π 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 ()β callreopen()on all existing Appenders.static void closeAll ()β callreopen()on all existing Appenders. (Yep, thatβs what it says undercloseAllβ 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
- 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