Home

Traffic Server Software Developers Kit

INKTextLogObjectRollingIntervalSecSet

Sets the rolling interval for a log object.

Prototype

INKReturnCode INKTextLogObjectRollingIntervalSecSet (INKTextLogObject the_object, int rolling_interval_sec)

Arguments

INKTextLogObject the_object is the log object for which you want to set the rolling interval.

int rolling_interval_sec is the rolling interval, in seconds.

Description

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.

Returns

INK_SUCCESS if the API is called successfully.

INK_ERROR if an error occurs while calling the API or if an argument is invalid.