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

Set this file observer to perform a periodic log file rotation at multiples of the specified `timeInterval`&period; The behavior is undefined unless `0 &lt; timeInterval&period;totalMilliseconds()`&period; This rule replaces any rotation&hyphen;on&hyphen;time&hyphen;interval rule currently in effect&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
rotateOnLifetime(xref:BloombergLP/bdlt/DatetimeInterval.adoc[bdlt::DatetimeInterval] const& timeInterval);
----

== Description

DEPRECATED&colon; Use `rotateOnTimeInterval` instead&period;


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