toast::log::max_file_size Struct Reference
[toast logging library]

#include <toast/log/rotation_policies.hpp>

List of all members.


Detailed Description

This RotationCheckPolicy indicates that a rotation should be performed after a configurable file size has been met.

The maximum file size is initially set to zero, which is equivalent to a limitless size. So, without setting the max_size, you will effectively never rotate. The size of an existing log WILL be taken into account when making rotation decisions.

Public Member Functions

void max_size (unsigned int size)
bool test (unsigned int size)

Protected Member Functions

bool test (const char *f)
void reset ()

Protected Attributes

unsigned int max_size_
unsigned int aggregate_


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

SourceForge.net Logo