TSTextLogObjectCreate
include <ts/ts.h>
(const char * filename, int mode, TSTextLogObject * new_log_obj)
TSTextLogObjectWrite
(TSTextLogObject the_object, const char * format, …)
void TSTextLogObjectFlush
( the_object)
void (TSTextLogObject the_object, const char * header)
TSTextLogObjectRollingEnabledSet
(TSTextLogObject the_object, int rolling_enabled)
void TSTextLogObjectRollingIntervalSecSet
( the_object, int rolling_interval_sec)
void (TSTextLogObject the_object, int rolling_size_mb)
sets the log rolling mode for the given object. This API must be used once the object is created and before writing into logs. The rolling_enabled argument must be a valid proxy.config.log.rolling_enabled
values. If is never called, the log object takes it’s log rolling mode from the global setting.
It’s also important to call before any of the other APIs that modifies the rolling object. This is due to the fact that this API dictates which rolling mode should be used, and therefore affects further modifications of the logging object.