MCPcopy Create free account
hub / github.com/apache/trafficserver / TSTextLogObjectRollingEnabledSet

Function TSTextLogObjectRollingEnabledSet

src/api/InkAPI.cc:6390–6401  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6388}
6389
6390TSReturnCode
6391TSTextLogObjectRollingEnabledSet(TSTextLogObject the_object, int rolling_enabled)
6392{
6393 sdk_assert(sdk_sanity_check_iocore_structure(the_object) == TS_SUCCESS);
6394
6395 if (LogRollingEnabledIsValid(rolling_enabled)) {
6396 (reinterpret_cast<TextLogObject *>(the_object))->set_rolling_enabled(static_cast<Log::RollingEnabledValues>(rolling_enabled));
6397 return TS_SUCCESS;
6398 }
6399
6400 return TS_ERROR;
6401}
6402
6403void
6404TSTextLogObjectRollingIntervalSecSet(TSTextLogObject the_object, int rolling_interval_sec)

Callers 3

initMethod · 0.85
setRollingEnabledMethod · 0.85
TSPluginInitFunction · 0.85

Calls 3

LogRollingEnabledIsValidFunction · 0.85
set_rolling_enabledMethod · 0.80

Tested by

no test coverage detected