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

Function SetCustomLoggingFunction

catboost/libs/logging/logging.cpp:37–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35};
36
37void SetCustomLoggingFunction(
38 TCustomLoggingFunction normalPriorityFunc,
39 TCustomLoggingFunction errorPriorityFunc,
40 TCustomLoggingObject normalPriorityObj,
41 TCustomLoggingObject errorPriorityObj)
42{
43 TCatBoostLogSettings::GetRef().Log.ResetBackend(
44 MakeHolder<TCustomFuncLogger>(normalPriorityFunc, normalPriorityObj),
45 MakeHolder<TCustomFuncLogger>(errorPriorityFunc, errorPriorityObj));
46}
47
48void RestoreOriginalLogger() {
49 TCatBoostLogSettings::GetRef().Log.RestoreDefaultBackend();

Callers

nothing calls this directly

Calls 1

ResetBackendMethod · 0.45

Tested by

no test coverage detected