level alias
#2238
Replies: 2 comments 1 reply
-
You can use https://github.com/gabime/spdlog/blob/v1.9.2/include/spdlog/tweakme.h#L89-L101 Example: #define SPDLOG_LEVEL_NAMES \
{ spdlog::string_view_t("trace", 5) \
, spdlog::string_view_t("debug", 5) \
, spdlog::string_view_t("info", 4) \
, spdlog::string_view_t("warning", 7) \
, spdlog::string_view_t("error", 5) \
, spdlog::string_view_t("fatal", 5) \
, spdlog::string_view_t("off", 3) }
#include "spdlog/spdlog.h"
int main(void)
{
spdlog::info("Hello, World");
return 0;
} |
Beta Was this translation helpful? Give feedback.
1 reply
-
seems SPDLOG_LEVEL_NAMES does not like -DSPDLOG_COMPILED_LIB. If I turn off the flag, I got fatal. If I turn on -DSPDLOG_COMPILED_LIB, still critical. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
[18:03:45 693012] [15955] [critical] Support for int: 42; hex: 2a; oct: 52; bin: 101010
I remember there is a simple way to change [critical] to [fatal] for example.
Beta Was this translation helpful? Give feedback.
All reactions