MCPcopy Create free account
hub / github.com/apple/foundationdb / formatEvent

Method formatEvent

flow/XmlTraceLogFormatter.cpp:77–90  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

75}
76
77std::string XmlTraceLogFormatter::formatEvent(const TraceEventFields& fields) const {
78 std::ostringstream oss;
79 oss << "<Event ";
80
81 for (auto itr : fields) {
82 escape(oss, itr.first);
83 oss << "=\"";
84 escape(oss, itr.second);
85 oss << "\" ";
86 }
87
88 oss << "/>\n";
89 return std::move(oss).str();
90}

Callers 1

actionMethod · 0.45

Calls 2

moveFunction · 0.85
strMethod · 0.45

Tested by

no test coverage detected