[#BloombergLP-ball-FileObserver2-rotateOnSize] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/ball.adoc[ball]::xref:BloombergLP/ball/FileObserver2.adoc[FileObserver2]::rotateOnSize :relfileprefix: ../../../ :mrdocs: Set this 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`. == Synopsis Declared in `<ball_fileobserver2.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void rotateOnSize(int size); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#