BloombergLP::ball::AsyncFileObserver::rotateOnSize

Rotate the log file when its size exceeds the specified size.

Synopsis

Declared in <ball_asyncfileobserver.h>

void
rotateOnSize(int size);

Description

Set this async file observer to perform log file rotation when the size of the file exceeds the specified size (in kilobytes). This rule replaces any rotation-on-size rule currently in effect. The behavior is undefined unless size > 0.

Parameters

NameDescription
sizemaximum log file size in kilobytes before rotation