MCPcopy Create free account
hub / github.com/catboost/catboost / OpenLog

Method OpenLog

library/cpp/logger/log.cpp:204–212  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

202}
203
204bool TLog::OpenLog(const char* path, ELogPriority lp) {
205 if (path) {
206 ResetBackend(CreateLogBackend(path, lp));
207 } else {
208 ResetBackend(MakeHolder<TStreamLogBackend>(&Cerr));
209 }
210
211 return true;
212}
213
214void TLog::ResetBackend(THolder<TLogBackend> backend) noexcept {
215 Impl_->ResetBackend(std::move(backend));

Callers

nothing calls this directly

Calls 1

CreateLogBackendFunction · 0.85

Tested by

no test coverage detected