MCPcopy Create free account
hub / github.com/TactilityProject/Tactility / get_log_prefix

Function get_log_prefix

TactilityKernel/source/log.cpp:32–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30}
31
32static inline char get_log_prefix(LogLevel level) {
33 using enum LogLevel;
34 switch (level) {
35 case LOG_LEVEL_ERROR:
36 return 'E';
37 case LOG_LEVEL_WARNING:
38 return 'W';
39 case LOG_LEVEL_INFO:
40 return 'I';
41 case LOG_LEVEL_DEBUG:
42 return 'D';
43 case LOG_LEVEL_VERBOSE:
44 return 'V';
45 default:
46 return '?';
47 }
48}
49
50static uint64_t get_log_timestamp() {
51 static uint64_t base = 0U;

Callers 1

log_genericFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected