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

Method TCatboostLogEntry

catboost/libs/logging/logging.cpp:53–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51
52
53TCatboostLogEntry::TCatboostLogEntry(TCatboostLog* parent, const TSourceLocation& sourceLocation, TStringBuf customMessage, ELogPriority priority) : Parent(parent)
54, SourceLocation(sourceLocation)
55, CustomMessage(customMessage)
56, Priority(priority)
57{
58 if (parent->NeedExtendedInfo()) {
59 (*this) << CustomMessage << ": " << NLoggingImpl::GetLocalTimeS() << " " << NMatrixnetLoggingImpl::StripFileName(SourceLocation.File) << ":" << SourceLocation.Line << " ";
60 RegularMessageStartOffset = this->Filled();
61 }
62}
63
64void TCatboostLogEntry::DoFlush()
65{

Callers

nothing calls this directly

Calls 4

GetLocalTimeSFunction · 0.85
NeedExtendedInfoMethod · 0.80
StripFileNameFunction · 0.70
FilledMethod · 0.45

Tested by

no test coverage detected