34 static constexpr
const char *pstr_level_uppercase_off __attribute__((__aligned__(PSTR_ALIGN))) PROGMEM =
"OFF";
35 static constexpr
const char *pstr_level_uppercase_emerg __attribute__((__aligned__(PSTR_ALIGN))) PROGMEM =
"EMERG";
36 static constexpr
const char *pstr_level_uppercase_crit __attribute__((__aligned__(PSTR_ALIGN))) PROGMEM =
"CRIT";
37 static constexpr
const char *pstr_level_uppercase_alert __attribute__((__aligned__(PSTR_ALIGN))) PROGMEM =
"ALERT";
38 static constexpr
const char *pstr_level_uppercase_err __attribute__((__aligned__(PSTR_ALIGN))) PROGMEM =
"ERR";
39 static constexpr
const char *pstr_level_uppercase_warning __attribute__((__aligned__(PSTR_ALIGN))) PROGMEM =
"WARNING";
40 static constexpr
const char *pstr_level_uppercase_notice __attribute__((__aligned__(PSTR_ALIGN))) PROGMEM =
"NOTICE";
41 static constexpr
const char *pstr_level_uppercase_info __attribute__((__aligned__(PSTR_ALIGN))) PROGMEM =
"INFO";
42 static constexpr
const char *pstr_level_uppercase_debug __attribute__((__aligned__(PSTR_ALIGN))) PROGMEM =
"DEBUG";
43 static constexpr
const char *pstr_level_uppercase_trace __attribute__((__aligned__(PSTR_ALIGN))) PROGMEM =
"TRACE";
44 static constexpr
const char *pstr_level_uppercase_all __attribute__((__aligned__(PSTR_ALIGN))) PROGMEM =
"ALL";
46 static const __FlashStringHelper *log_level_uppercase[(int)Level::ALL - (
int)Level::OFF + 1] = {
47 reinterpret_cast<const __FlashStringHelper *
>(pstr_level_uppercase_off),
48 reinterpret_cast<const __FlashStringHelper *
>(pstr_level_uppercase_emerg),
49 reinterpret_cast<const __FlashStringHelper *
>(pstr_level_uppercase_crit),
50 reinterpret_cast<const __FlashStringHelper *
>(pstr_level_uppercase_alert),
51 reinterpret_cast<const __FlashStringHelper *
>(pstr_level_uppercase_err),
52 reinterpret_cast<const __FlashStringHelper *
>(pstr_level_uppercase_warning),
53 reinterpret_cast<const __FlashStringHelper *
>(pstr_level_uppercase_notice),
54 reinterpret_cast<const __FlashStringHelper *
>(pstr_level_uppercase_info),
55 reinterpret_cast<const __FlashStringHelper *
>(pstr_level_uppercase_debug),
56 reinterpret_cast<const __FlashStringHelper *
>(pstr_level_uppercase_trace),
57 reinterpret_cast<const __FlashStringHelper *
>(pstr_level_uppercase_all)
62 return log_level_uppercase[(int)level + 1];