LOG4CPP::DAILYROLLINGFILEAPPENDER(3)
π log4cpp::DailyRollingFileAppender(3) π
okay bestie, welcome to the Library Functions Manual page for log4cpp::DailyRollingFileAppender(3) β the appender that literally rolls your logfile over when the next day starts. main character energy fr fr. π
β¨
πΈ NAME πΈ
log4cpp::DailyRollingFileAppender β a FileAppender that rolls over the logfile once the next day starts. no cap. π
β¨ SYNOPSIS β¨
#include <DailyRollingFileAppender.hh>
Inherits log4cpp::FileAppender.
π« Public Member Functions π«
DailyRollingFileAppender (const std::string &name, const std::string &fileName, unsigned int maxDaysToKeep=maxDaysToKeepDefault, bool append=true, mode_t mode=00644)virtual void setMaxDaysToKeep (unsigned int maxDaysToKeep)virtual unsigned int getMaxDaysToKeep () constvirtual void rollOver ()
π¦ Public Member Functions inherited from log4cpp::FileAppender π¦
FileAppender (const std::string &name, const std::string &fileName, bool append=true, mode_t mode=00644)β Constructs aFileAppender.FileAppender (const std::string &name, int fd)β Constructs aFileAppenderto an already open file descriptor.virtual ~FileAppender ()virtual bool reopen ()β Reopens the logfile.virtual void close ()β Closes the logfile.virtual void setAppend (bool append)β Sets the append vs truncate flag.virtual bool getAppend () constβ Gets the value of the'append'option.virtual void setMode (mode_t mode)β Sets the file open mode.virtual mode_t getMode () constβ Gets the file open mode.
π§ Public Member Functions inherited from log4cpp::LayoutAppender π§
LayoutAppender (const std::string &name)virtual ~LayoutAppender ()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 inAppenderspecific way.virtual void setThreshold (Priority::Value priority)β Set the threshold priority of thisAppender.virtual Priority::Value getThreshold ()β Get the threshold priority of thisAppender.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.
π Static Public Attributes π
static unsigned int maxDaysToKeepDefault = 30
π Protected Member Functions π
virtual void _append (const LoggingEvent &event)β Log inAppenderspecific way.
π 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 forAppenderSkeleton.
π«Ά Protected Member Functions inherited from log4cpp::Appender π«Ά
Appender (const std::string &name)β Constructor forAppender.
π¦ Protected Attributes π¦
unsigned int _maxDaysToKeepstruct tm _logsTime
π Protected Attributes inherited from log4cpp::FileAppender π
const std::string _fileNameint _fdint _flagsmode_t _mode
β 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 exitsingAppender. yes, that spelling is in the source, iykyk πstatic bool reopenAll ()β Callreopen()on all existingAppenders.static void closeAll ()β Callreopen()on all existingAppenders. the source literally saysreopen()here too π
π DETAILED DESCRIPTION π
DailyRollingFileAppender is a FileAppender that rolls over the logfile once the next day starts.
β¨ Since β¨
1.1.2
π₯ CONSTRUCTOR & DESTRUCTOR DOCUMENTATION π₯
π log4cpp::DailyRollingFileAppender::DailyRollingFileAppender
log4cpp::DailyRollingFileAppender::DailyRollingFileAppender (
const std::string & name,
const std::string & fileName,
unsigned int maxDaysToKeep = maxDaysToKeepDefault,
bool append = true,
mode_t mode = 00644)
β MEMBER FUNCTION DOCUMENTATION β
π¦ void log4cpp::DailyRollingFileAppender::_append (const LoggingEvent & event) [protected], [virtual]
Log in Appender specific way. Subclasses of Appender should implement this method to perform actual logging.
Parameters
eventβ TheLoggingEventto log.
Reimplemented from log4cpp::FileAppender.
π unsigned int log4cpp::DailyRollingFileAppender::getMaxDaysToKeep () const [virtual]
signature only bestie β the source gives no extra description here. π
π void log4cpp::DailyRollingFileAppender::rollOver () [virtual]
same vibe: signature only, no extra notes in the source. π¦
π void log4cpp::DailyRollingFileAppender::setMaxDaysToKeep (unsigned int maxDaysToKeep) [virtual]
signature only again. periodt. β¨
π MEMBER DATA DOCUMENTATION π
struct tm log4cpp::DailyRollingFileAppender::_logsTime[protected]unsigned int log4cpp::DailyRollingFileAppender::_maxDaysToKeep[protected]unsigned int log4cpp::DailyRollingFileAppender::maxDaysToKeepDefault = 30[static]
π§ AUTHOR π§
Generated automatically by Doxygen for log4cpp from the source code.
okay that's the whole page bestie π cute sign-off time: the footer says source/version log4cpp Version 1.1, and there's no specific date shown on this page β so we're not inventing one. ππ
π¦ 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