[#BloombergLP-ball-FileObserver-OnFileRotationCallback] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/ball.adoc[ball]::xref:BloombergLP/ball/FileObserver.adoc[FileObserver]::OnFileRotationCallback :relfileprefix: ../../../ :mrdocs: `OnFileRotationCallback` is an alias for a user‐supplied callback function that is invoked after the file observer attempts to rotate its log file. The callback takes two arguments: (1) an integer status value where 0 indicates a new log file was successfully created and a non‐zero value indicates an error occurred during rotation, and (2) a string that provides the name of the rotated log file if the rotation was successful. E.g.: ` void onLogFileRotation(int rotationStatus, const bsl::string& rotatedLogFileName); ` == Synopsis Declared in `<ball_fileobserver.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- typedef xref:BloombergLP/ball/FileObserver2/OnFileRotationCallback.adoc[FileObserver2::OnFileRotationCallback] OnFileRotationCallback; ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#