| 167 | } |
| 168 | |
| 169 | void |
| 170 | Logger::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 | |
| 181 | bool |
| 182 | Logger::isRollingEnabled() const |
nothing calls this directly
no test coverage detected