log4tango::RollingFileAppender(3)
π log4tango::RollingFileAppender π
okay bestie, welcome to the log4tango manual page for log4tango::RollingFileAppender β yeah, that's a mouthful, we're just gonna call it the vibe. This is section 3 of the log4tango manual, and it's giving file appender that rolls over when it gets too big energy. β¨
πΈ NAME πΈ
log4tango::RollingFileAppender β no notes, that's literally the name, periodt.
π SYNOPSIS π
#include <RollingFileAppender.hh>
Inherits log4tango::FileAppender.
so it's a glow-up of log4tango::FileAppender, like it inherited the whole fit and then added some accessories. π
β¨ Public Member Functions β¨
RollingFileAppender (const std::string &name, const std::string
&file_name, size_t max_fs=10 *1024 *1024, unsigned int max_bi=1,
bool append=true, mode_t mode=00644)
virtual void set_max_backup_index (unsigned int maxBackups)
virtual unsigned int get_max_backup_index () const
virtual void set_maximum_file_size (size_t max_fs)
virtual size_t get_max_file_size () const
virtual void roll_over ()
π«Ά Protected Member Functions π«Ά
virtual int _append (const LoggingEvent &event)
Log in Appender specific way.
π¦ Protected Attributes π¦
unsigned int _max_backup_index
size_t _max_file_size
π Additional Inherited Members π
(no extra deets listed here, it's just vibes β everything else comes from the parent, iykyk)
π Constructor & Destructor Documentation π
log4tango::RollingFileAppender::RollingFileAppender (const std::string &
name, const std::string & file_name, size_t max_fs = 10*1024*1024,
unsigned int max_bi = 1, bool append = true, mode_t mode = 00644)
that's the whole constructor, bestie. six args, and the last four are just chillin' with their defaults. π
β¨ Member Function Documentation β¨
int log4tango::RollingFileAppender::_append (const LoggingEvent & event)
[protected], [virtual]
Log in Appender specific way. Subclasses of Appender should implement this method to perform actual logging. lowkey this is where the actual logging happens, so if you're subclassing, this is your moment to shine. π
Parameters
- event β The
LoggingEventto log.
Reimplemented from log4tango::FileAppender. π«Ά
unsigned int log4tango::RollingFileAppender::get_max_backup_index () const
[virtual]
size_t log4tango::RollingFileAppender::get_max_file_size () const [virtual]
void log4tango::RollingFileAppender::roll_over () [virtual]
void log4tango::RollingFileAppender::set_max_backup_index (unsigned int
maxBackups) [virtual]
void log4tango::RollingFileAppender::set_maximum_file_size (size_t max_fs)
[virtual]
π Member Data Documentation π
unsigned int log4tango::RollingFileAppender::_max_backup_index [protected]
size_t log4tango::RollingFileAppender::_max_file_size [protected]
protected attributes, so they're for the family only, not for the group chat. π
πΈ Author πΈ
Generated automatically by Doxygen for log4tango from the source code. not a human author, just a robot doing its thing and honestly? slay. π€β¨
okay that's the whole page!! Version 5.0.2, dated Thu Dec 5 β thanks for reading bestie, go forth and roll those files over πππ¦π
π¦ where this page comes from
- debian bookworm: liblog4tango-doc 9.3.4+dfsg1-2+deb12u1 Β· LGPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms