SPDLOG_TRACE to check log level before calling the logger

This commit is contained in:
gabime
2018-12-06 13:27:00 +02:00
parent 058d2d1bd4
commit 3da189f7c0
2 changed files with 5 additions and 3 deletions

View File

@@ -60,9 +60,9 @@
#endif //__builtin_strrchr not defined
#ifdef _WIN32
#define SPDLOG_FILE_BASENAME SPDLOG_STRRCHR("\\" __FILE__, '\\') + 1
#define SPDLOG_FILE_BASENAME(file) SPDLOG_STRRCHR("\\" file, '\\') + 1
#else
#define SPDLOG_FILE_BASENAME SPDLOG_STRRCHR("/" __FILE__, '/') + 1
#define SPDLOG_FILE_BASENAME(file) SPDLOG_STRRCHR("/" file, '/') + 1
#endif
namespace spdlog {