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

Function DoInitGlobalLog

library/cpp/logger/global/global.cpp:3–9  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1#include "global.h"
2
3static void DoInitGlobalLog(THolder<TGlobalLog> logger, THolder<ILoggerFormatter> formatter) {
4 TLoggerOperator<TGlobalLog>::Set(logger.Release());
5 if (!formatter) {
6 formatter.Reset(CreateRtyLoggerFormatter());
7 }
8 TLoggerFormatterOperator::Set(formatter.Release());
9}
10
11void DoInitGlobalLog(const TString& logType, const int logLevel, const bool rotation, const bool startAsDaemon, THolder<ILoggerFormatter> formatter, bool threaded) {
12 DoInitGlobalLog(

Callers 2

InitGlobalLog2NullFunction · 0.85
InitGlobalLog2ConsoleFunction · 0.85

Calls 8

CreateRtyLoggerFormatterFunction · 0.85
CreateLogBackendFunction · 0.85
PrepareToOpenLogFunction · 0.85
SetClass · 0.50
moveFunction · 0.50
THolderClass · 0.50
ReleaseMethod · 0.45
ResetMethod · 0.45

Tested by

no test coverage detected