log4tango::RollingFileAppender(3)

πŸ“¦
version 9.3.4 Β· 2 versions
, in debian bookworm

πŸ‘‘ 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 LoggingEvent to 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