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

Method setRollingIntervalSeconds

src/tscpp/api/Logger.cc:148–158  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

146}
147
148void
149Logger::setRollingIntervalSeconds(int seconds)
150{
151 if (state_->initialized_) {
152 state_->rolling_interval_seconds_ = seconds;
153 TSTextLogObjectRollingIntervalSecSet(state_->text_log_obj_, seconds);
154 LOG_DEBUG("Set rolling interval for log [%s] to %d seconds", state_->filename_.c_str(), seconds);
155 } else {
156 LOG_ERROR("Not initialized!");
157 }
158}
159
160int
161Logger::getRollingIntervalSeconds() const

Callers

nothing calls this directly

Calls 2

c_strMethod · 0.45

Tested by

no test coverage detected