Back to index

nux  3.0.0
Public Member Functions | Public Attributes
nux::logging::RollingFileAppender Class Reference

#include <RollingFileAppender.h>

Inheritance diagram for nux::logging::RollingFileAppender:
Inheritance graph
[legend]
Collaboration diagram for nux::logging::RollingFileAppender:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 RollingFileAppender (std::string const &filename)
 RollingFileAppender (std::string const &filename, unsigned number_of_backup_files, unsigned long long max_log_size)
 ~RollingFileAppender ()

Public Attributes

sigc::signal< void > files_rolled

Detailed Description

Definition at line 33 of file RollingFileAppender.h.


Constructor & Destructor Documentation

nux::logging::RollingFileAppender::RollingFileAppender ( std::string const &  filename)

Definition at line 223 of file RollingFileAppender.cpp.

  : std::ostream(new RollingFileStreamBuffer(filename, 5, 1e7, files_rolled))
{
}
nux::logging::RollingFileAppender::RollingFileAppender ( std::string const &  filename,
unsigned  number_of_backup_files,
unsigned long long  max_log_size 
)

Definition at line 228 of file RollingFileAppender.cpp.

  : std::ostream(new RollingFileStreamBuffer(filename,
                                             number_of_backup_files,
                                             max_log_size,
                                             files_rolled))
{
}

Definition at line 238 of file RollingFileAppender.cpp.

{
  rdbuf()->pubsync();
  std::streambuf* buff = rdbuf(0);
  delete buff;
}

Member Data Documentation

Definition at line 42 of file RollingFileAppender.h.


The documentation for this class was generated from the following files: