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

Method Write

library/cpp/logger/log.cpp:226–233  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

224}
225
226void TLog::Write(ELogPriority priority, const char* data, size_t len, TLogRecord::TMetaFlags metaFlags) const {
227 if (Formatter_) {
228 const auto formated = Formatter_(priority, TStringBuf{data, len});
229 Impl_->WriteData(priority, formated.data(), formated.size(), std::move(metaFlags));
230 } else {
231 Impl_->WriteData(priority, data, len, std::move(metaFlags));
232 }
233}
234
235void TLog::Write(ELogPriority priority, const TStringBuf data, TLogRecord::TMetaFlags metaFlags) const {
236 Write(priority, data.data(), data.size(), std::move(metaFlags));

Callers 15

WriteFunction · 0.45
SaveIndexFunction · 0.45
EscapeCFunction · 0.45
WriteIndentMethod · 0.45
EndNodeMethod · 0.45
BeginCollectionMethod · 0.45
CollectionItemMethod · 0.45
EndCollectionMethod · 0.45
WriteStringScalarMethod · 0.45
OnInt64ScalarMethod · 0.45
OnUint64ScalarMethod · 0.45
OnDoubleScalarMethod · 0.45

Calls 6

moveFunction · 0.50
WriteFunction · 0.50
WriteDataMethod · 0.45
dataMethod · 0.45
sizeMethod · 0.45
DefaultPriorityMethod · 0.45

Tested by 4

WriteFunction · 0.36
TestWriteMethod · 0.36
TestMetaFlagsMethod · 0.36
TestReadMethod · 0.36