| 28 | } |
| 29 | |
| 30 | bool 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 | |
| 45 | void TLogBackendCreatorUninitialized::ToJson(NJson::TJsonValue& value) const { |
nothing calls this directly
no test coverage detected