Skip to content

default logging macro level does not "propagate"? #3031

Answered by tt4g
broland29 asked this question in Q&A
Discussion options

You must be logged in to vote

#define SPDLOG_ACTIVE_LEVEL SPDLOG_LEVEL_TRACE is not evaluated because there is no #include "Logger.h" in both Other.h and Other.cpp.
SPDLOG_ACTIVE_LEVEL is SPDLOG_LEVEL_INFO at the time Other is compiled.

You should define SPDLOG_ACTIVE_LEVEL in a header file that is #include in all source files, or define by compile option.

Replies: 1 comment 1 reply

Comment options

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

Answer selected by broland29
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