LOG4CPP::DAILYROLLINGFILEAPPENDER(3)

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

πŸ’– 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 () const
  • virtual 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 a FileAppender.
  • FileAppender (const std::string &name, int fd) β€” Constructs a FileAppender to 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 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 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.

🌟 Static Public Attributes 🌟

  • static unsigned int maxDaysToKeepDefault = 30

πŸŽ€ Protected Member Functions πŸŽ€

  • virtual void _append (const LoggingEvent &event) β€” Log in Appender specific 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 for AppenderSkeleton.

🫢 Protected Member Functions inherited from log4cpp::Appender 🫢

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

πŸ¦„ Protected Attributes πŸ¦„

  • unsigned int _maxDaysToKeep
  • struct tm _logsTime

πŸ’Ž Protected Attributes inherited from log4cpp::FileAppender πŸ’Ž

  • const std::string _fileName
  • int _fd
  • int _flags
  • mode_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 exitsing Appender. yes, that spelling is in the source, iykyk πŸ’€
  • static bool reopenAll () β€” Call reopen() on all existing Appenders.
  • static void closeAll () β€” Call reopen() on all existing Appenders. the source literally says reopen() 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 β€” The LoggingEvent to 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