toast::log::message_limit 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 number of calls have been made to the test method.

The test method is called by the output policies' message method, and therefore should be an accurate count of the number of messages.

By default, the maximum number of messages is ZERO, this is equivalent to a limitless number of messages. So, without setting the max_messages, you will effectively never rotate. Additionally, a "message" is an abstract concept which pertains to the logger during runtime. As such, there is no methodology to determine the number of messages within a preexisting log. Therefore, data that preexists in a file will not be taken into account by this policy.

Public Member Functions

void max_messages (unsigned int messages)
bool test (unsigned int)

Protected Member Functions

void reset ()

Static Protected Member Functions

static bool test (const char *)

Protected Attributes

unsigned int max_messages_
unsigned int messages_


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

SourceForge.net Logo