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

Method setRollingEnabled

src/tscpp/api/Logger.cc:169–179  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

167}
168
169void
170Logger::setRollingEnabled(bool enabled)
171{
172 if (state_->initialized_) {
173 state_->rolling_enabled_ = enabled;
174 TSTextLogObjectRollingEnabledSet(state_->text_log_obj_, enabled ? ROLL_ON_TIME : 0);
175 LOG_DEBUG("Rolling for log [%s] is now %s", state_->filename_.c_str(), (enabled ? "true" : "false"));
176 } else {
177 LOG_ERROR("Not initialized!");
178 }
179}
180
181bool
182Logger::isRollingEnabled() const

Callers

nothing calls this directly

Calls 2

c_strMethod · 0.45

Tested by

no test coverage detected