log4tango
5.0.0
|
#include <RollingFileAppender.hh>
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 () |
![]() | |
FileAppender (const std::string &name, const std::string &fileName, bool append=true, mode_t mode=00644) | |
Constructs a FileAppender. More... | |
FileAppender (const std::string &name, int fd) | |
Constructs a FileAppender to an already open file descriptor. More... | |
virtual | ~FileAppender () |
Destructor. More... | |
virtual bool | reopen (void) |
Reopens the logfile. More... | |
virtual void | close (void) |
Closes the logfile. More... | |
virtual bool | is_valid (void) const |
Check if the appender is valid. More... | |
virtual void | set_append (bool append) |
Sets the append vs truncate flag. More... | |
virtual bool | get_append (void) const |
Gets the value of the 'append' option. More... | |
virtual void | set_mode (mode_t mode) |
Sets the file open mode. More... | |
virtual mode_t | get_mode () const |
Gets the file open mode. More... | |
![]() | |
LayoutAppender (const std::string &name) | |
virtual | ~LayoutAppender () |
virtual bool | requires_layout () const |
Check if the appender uses a layout. More... | |
virtual void | set_layout (Layout *layout=0) |
Change the layout. More... | |
![]() | |
virtual | ~Appender () |
Destructor for Appender. More... | |
int | append (const LoggingEvent &event) |
Log in Appender specific way. More... | |
const std::string & | get_name (void) const |
Returns this appender name. More... | |
Protected Member Functions | |
virtual int | _append (const LoggingEvent &event) |
Log in Appender specific way. More... | |
![]() | |
Layout & | get_layout () |
![]() | |
Appender (const std::string &name) | |
Constructor for Appender. More... | |
virtual void | level_changed (Level::Value new_level) |
Inform an appender that its Logger's logging level has changed. More... | |
Protected Attributes | |
unsigned int | _max_backup_index |
size_t | _max_file_size |
![]() | |
const std::string | _file_name |
int | _fd |
int | _flags |
mode_t | _mode |
Additional Inherited Members | |
![]() | |
typedef Layout | DefaultLayoutType |
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 |
||
) |
|
protectedvirtual |
Log in Appender specific way.
Subclasses of Appender should implement this method to perform actual logging.
event | The LoggingEvent to log. |
Reimplemented from log4tango::FileAppender.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
protected |
|
protected |