boost::logging::destination::rolling_file_t< convert_dest > Struct Template Reference

Writes to multiple files: name_prefix.1, name_prefix.2, ... name_prefix.N, and then restarts from 1. More...

Inheritance diagram for boost::logging::destination::rolling_file_t< convert_dest >:
[legend]
Collaboration diagram for boost::logging::destination::rolling_file_t< convert_dest >:
[legend]

List of all members.

Public Member Functions

 rolling_file_t (const std::string &name_prefix, rolling_file_settings flags=rolling_file_settings())
void flush ()
void configure (const hold_string_type &str)


Detailed Description

template<class convert_dest = do_convert_destination>
struct boost::logging::destination::rolling_file_t< convert_dest >

Writes to multiple files: name_prefix.1, name_prefix.2, ... name_prefix.N, and then restarts from 1.

We first write to name_prefix.1.

The log has a max_size. When max_size is reached, we start writing to name_prefix.2. When max_size is reached, we start writing to name_prefix.3. And so on, until we reach name_prefix.N (N = file_count). When that gets fool, we start over, with name_prefix.1.


Constructor & Destructor Documentation

template<class convert_dest = do_convert_destination>
boost::logging::destination::rolling_file_t< convert_dest >::rolling_file_t ( const std::string &  name_prefix,
rolling_file_settings  flags = rolling_file_settings() 
) [inline]

Constructs a rolling file

Parameters:
name_prefix the name to be used as prefix for the files
flags [optional] extra settings to pass to the rolling file. See rolling_file_settings and Dealing with flags..


Member Function Documentation

template<class convert_dest = do_convert_destination>
void boost::logging::destination::rolling_file_t< convert_dest >::flush (  )  [inline]

manual flush()ing the currently opened file.

template<class convert_dest = do_convert_destination>
void boost::logging::destination::rolling_file_t< convert_dest >::configure ( const hold_string_type &  str  )  [inline, virtual]

configure through script right now, you can only specify the file name prefix

Reimplemented from boost::logging::manipulator::is_generic.


The documentation for this struct was generated from the following file:

Copyright John Torjo © 2007
Have a question/ suggestion/ comment? Send me feedback