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_fileobserver2.h>

typedef bsl::function<void(int, xref:bsl/string.adoc[bsl::string const&)>] OnFileRotationCallback;

Created with MrDocs