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

Function getTextStyle

src/Diagnostics/src/LogTerminal.cpp:35–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33 }
34
35 static fmt::text_style getTextStyle(Level level)
36 {
37 fmt::text_style textStyle{};
38 switch (level)
39 {
40 case Level::info:
41 textStyle |= kColourInfo;
42 break;
43 case Level::warning:
44 textStyle |= kColourWarning;
45 break;
46 case Level::error:
47 textStyle |= kColourError;
48 break;
49 case Level::verbose:
50 textStyle |= kColourVerbose;
51 break;
52 default:
53 break;
54 }
55 return textStyle;
56 }
57
58 void LogTerminal::print(Level level, std::string_view message)
59 {

Callers 1

printMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected