-
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_TRACE
is not evaluated because there is no#include "Logger.h"
in bothOther.h
andOther.cpp
.SPDLOG_ACTIVE_LEVEL
isSPDLOG_LEVEL_INFO
at the timeOther
is compiled.You should define
SPDLOG_ACTIVE_LEVEL
in a header file that is#include
in all source files, or define by compile option.