[#BloombergLP-ball-FileObserver2-rotateOnLifetime] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/ball.adoc[ball]::xref:BloombergLP/ball/FileObserver2.adoc[FileObserver2]::rotateOnLifetime :relfileprefix: ../../../ :mrdocs: Set this file observer to perform a periodic log file rotation at multiples of the specified `timeInterval`. This rule replaces any rotation‐on‐time‐interval rule currently in effect. The behavior is undefined unless `0 < timeInterval.totalMilliseconds()`. == Synopsis Declared in `<ball_fileobserver2.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void rotateOnLifetime(xref:BloombergLP/bdlt/DatetimeInterval.adoc[bdlt::DatetimeInterval] const& timeInterval); ---- == Description DEPRECATED: Use `rotateOnTimeInterval` instead. [.small]#Created with https://www.mrdocs.com[MrDocs]#