-
|
Hello. I am trying to use Logger.h Logger.cpp Other.h: Other.cpp Main.cpp Output: I want to see line a line similar Thanks 😄 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
You should define |
Beta Was this translation helpful? Give feedback.
#define SPDLOG_ACTIVE_LEVEL SPDLOG_LEVEL_TRACEis not evaluated because there is no#include "Logger.h"in bothOther.handOther.cpp.SPDLOG_ACTIVE_LEVELisSPDLOG_LEVEL_INFOat the timeOtheris compiled.You should define
SPDLOG_ACTIVE_LEVELin a header file that is#includein all source files, or define by compile option.