TSTextLogObjectCreate

Traffic Server text logging API.

Synopsis

#include <ts/ts.h>

TSReturnCode TSTextLogObjectCreate(const char* filename, int mode, TSTextLogObject * new_log_obj) InkAPI.cc line 6784
TSReturnCode TSTextLogObjectWrite(TSTextLogObject the_object, const char * format, ...) InkAPI.cc line 6821
void TSTextLogObjectFlush(TSTextLogObject the_object) InkAPI.cc line 6850
TSReturnCode TSTextLogObjectDestroy(TSTextLogObject the_object) InkAPI.cc line 6858
void TSTextLogObjectHeaderSet(TSTextLogObject the_object, const char * header) InkAPI.cc line 6869
TSReturnCode TSTextLogObjectRollingEnabledSet(TSTextLogObject the_object, int rolling_enabled) InkAPI.cc line 6877
void TSTextLogObjectRollingIntervalSecSet(TSTextLogObject the_object, int rolling_interval_sec) InkAPI.cc line 6890
void TSTextLogObjectRollingOffsetHrSet(TSTextLogObject the_object, int rolling_offset_hr) InkAPI.cc line 6898

Description

TSTextLogObjectRollingEnabledSet() 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 TSTextLogObjectRollingEnabledSet() is never called, the log object takes it’s log rolling mode from the global proxy.config.log.rolling_enabled setting.

See also

TSAPI(3ts)