logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

log4tango::RollingFileAppender

Author

       Generated automatically by Doxygen for log4tango from the source code.

Version 5.0.1                                    Fri Feb 14 2020               log4tango::RollingFileAppender(3)

Constructor & Destructor Documentation

log4tango::RollingFileAppender::RollingFileAppender(conststd::string&name,conststd::string&file_name,size_tmax_fs=10*1024*1024,unsignedintmax_bi=1,boolappend=true,mode_tmode=00644)

Member Data Documentation

unsignedintlog4tango::RollingFileAppender::_max_backup_index[protected]size_tlog4tango::RollingFileAppender::_max_file_size[protected]

Member Function Documentation

intlog4tango::RollingFileAppender::_append(constLoggingEvent&event)[protected],[virtual]
       Log in Appender specific way. Subclasses of Appender should implement this method to perform actual
       logging.

       Parametersevent The LoggingEvent to log.

       Reimplemented from log4tango::FileAppender.

   unsignedintlog4tango::RollingFileAppender::get_max_backup_index()const[virtual]size_tlog4tango::RollingFileAppender::get_max_file_size()const[virtual]voidlog4tango::RollingFileAppender::roll_over()[virtual]voidlog4tango::RollingFileAppender::set_max_backup_index(unsignedintmaxBackups)[virtual]voidlog4tango::RollingFileAppender::set_maximum_file_size(size_tmax_fs)[virtual]

Name

       log4tango::RollingFileAppender

Synopsis

       #include <RollingFileAppender.hh>

       Inherits log4tango::FileAppender.

   PublicMemberFunctionsRollingFileAppender (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 ()

   ProtectedMemberFunctions
       virtual int _append (const LoggingEvent &event)
           Log in Appender specific way.

   ProtectedAttributes
       unsigned int _max_backup_index
       size_t _max_file_sizeAdditionalInheritedMembers

See Also