MCPcopy Create free account
hub / github.com/OpenLoco/OpenLoco / print

Function print

src/Diagnostics/src/Logging.cpp:17–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15 {
16
17 void print(Level level, std::string_view message)
18 {
19 static LogTerminal _logTerminal;
20
21 if (_sinks.empty())
22 {
23 _logTerminal.print(level, message);
24 return;
25 }
26
27 for (auto& sink : _sinks)
28 {
29 if (!sink->passesLevelFilter(level))
30 {
31 continue;
32 }
33
34 sink->print(level, message);
35 }
36 }
37
38 bool passesLevelFilter(Level level)
39 {

Callers 6

printMethod · 0.85
printMethod · 0.85
printLevelFunction · 0.85
printLevelMethod · 0.85
run_clang_format_versionFunction · 0.85
print_troubleFunction · 0.85

Calls 3

passesLevelFilterMethod · 0.80
emptyMethod · 0.45
printMethod · 0.45

Tested by

no test coverage detected