[#BloombergLP-ball-FileObserver-forceRotation]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/ball.adoc[ball]::xref:BloombergLP/ball/FileObserver.adoc[FileObserver]::forceRotation
:relfileprefix: ../../../
:mrdocs:

Forcefully perform a log file rotation by this file observer&period; Close the current log file, rename the log file if necessary, and open a new log file&period; This method has no effect if file logging is not enabled&period; See &lcub;Rotated File Naming&rcub; for details on filenames of rotated log files&period;

== Synopsis

Declared in `&lt;ball&lowbar;fileobserver&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
forceRotation();
----


[.small]#Created with https://www.mrdocs.com[MrDocs]#
