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

Method Init

library/cpp/logger/uninitialized_creator.cpp:30–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28}
29
30bool TLogBackendCreatorUninitialized::Init(const IInitContext& ctx) {
31 auto type = ctx.GetOrElse("LoggerType", TString());
32 bool threaded = ctx.GetOrElse("Threaded", false);
33 ELogPriority priority = LOG_MAX_PRIORITY;
34 TString prStr;
35 if (ctx.GetValue("LogLevel", prStr)) {
36 if (!TryFromString(prStr, priority)) {
37 priority = (ELogPriority)FromString<int>(prStr);
38 }
39 }
40 InitCustom(type, priority, threaded);
41 return Slave->Init(ctx);
42}
43
44
45void TLogBackendCreatorUninitialized::ToJson(NJson::TJsonValue& value) const {

Callers

nothing calls this directly

Calls 3

TryFromStringFunction · 0.85
GetOrElseMethod · 0.45
GetValueMethod · 0.45

Tested by

no test coverage detected