Sets the rolling interval for a log object.
INKReturnCode INKTextLogObjectRollingIntervalSecSet
(INKTextLogObject
the_object
, int
rolling_interval_sec
)
INKTextLogObject
is the log
object for which you want to set the rolling interval.the_object
int
is the
rolling interval, in seconds.rolling_interval_sec
This API must be used once the object is created (using
INKTextLogObjectCreate
) and before writing
into logs (using INKTextLogObjectWrite
). By
default, a null header is used.
If
INKTextLogObjectRollingIntervalSecSet
is
not called, then the defaut value (specified in
records.config
by parameter
proxy.config.log2.rolling_interval_sec
) is
used.
The rolling offset can be specified using the API
INKTextLogObjectRollingOffsetHrSet
.
INK_SUCCESS
if the API is called
successfully.
INK_ERROR
if an error occurs while calling
the API or if an argument is invalid.