[#BloombergLP-ball-FileObserver2-setOnFileRotationCallback] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/ball.adoc[ball]::xref:BloombergLP/ball/FileObserver2.adoc[FileObserver2]::setOnFileRotationCallback :relfileprefix: ../../../ :mrdocs: Set the specified `onRotationCallback` to be invoked after each time this file observer attempts to perform a log file rotation. The behavior is undefined if the supplied function calls either `setOnFileRotationCallback`, `forceRotation`, or `publish` on this file observer (i.e., the supplied callback should _not_ attempt to write to the `ball` log). == Synopsis Declared in `<ball_fileobserver2.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void setOnFileRotationCallback(xref:BloombergLP/ball/FileObserver2/OnFileRotationCallback.adoc[OnFileRotationCallback] const& onRotationCallback); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#