Skip to content

Can I add a new Log-Level? #2703

Answered by tt4g
mobergmann asked this question in Q&A
Apr 12, 2023 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

If you want to add an API to the spdlog namespace, you have to edit the source files.

Any log level that is printed in the log message can be overridden by the macro.

///////////////////////////////////////////////////////////////////////////////
// Uncomment to customize level names (e.g. "MY TRACE")
//
// #define SPDLOG_LEVEL_NAMES { "MY TRACE", "MY DEBUG", "MY INFO", "MY WARNING", "MY ERROR", "MY CRITICAL", "OFF" }
///////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////
// Uncom…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@mobergmann
Comment options

Answer selected by mobergmann
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants