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

Method Format

library/cpp/logger/global/rty_formater.cpp:68–75  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

66 class TRtyLoggerFormatter : public ILoggerFormatter {
67 public:
68 void Format(const TLogRecordContext& context, TLogElement& elem) const override {
69 elem << context.CustomMessage << ": " << NLoggingImpl::GetLocalTimeS() << " "
70 << NLoggingImpl::StripFileName(context.SourceLocation.File) << ":" << context.SourceLocation.Line;
71 if (context.Priority > TLOG_RESOURCES && !ExitStarted()) {
72 elem << NLoggingImpl::GetSystemResources();
73 }
74 elem << " ";
75 }
76 };
77}
78

Callers 1

StartRecordMethod · 0.45

Calls 4

GetLocalTimeSFunction · 0.85
ExitStartedFunction · 0.85
GetSystemResourcesFunction · 0.85
StripFileNameFunction · 0.70

Tested by

no test coverage detected