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

Method ResetBackend

catboost/libs/logging/logging.cpp:133–138  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

131}
132
133void TCatboostLog::ResetBackend(THolder<TLogBackend>&& lowPriorityBackend, THolder<TLogBackend>&& highPriorityBackend) {
134 if (IsCustomBackendSpecified.exchange(true)) {
135 CATBOOST_WARNING_LOG << "Custom logger is already specified. Specify more than one logger at same time is not thread safe.";
136 }
137 ImplHolder->ResetBackend(std::move(lowPriorityBackend), std::move(highPriorityBackend));
138}
139
140void TCatboostLog::ResetTraceBackend(THolder<TLogBackend>&& traceBackend /*= THolder<TLogBackend>()*/) {
141 HaveTraceLog = (bool)traceBackend;

Callers 4

SetCustomLoggingFunctionFunction · 0.45
ResetBackendMethod · 0.45
ResetTraceBackendMethod · 0.45
RestoreDefaultBackendMethod · 0.45

Calls 2

moveFunction · 0.50
exchangeMethod · 0.45

Tested by

no test coverage detected