mirror of
https://github.com/gabime/spdlog.git
synced 2025-09-30 10:29:02 +08:00
Improve log macros
This commit is contained in:
@@ -288,8 +288,8 @@ inline void critical(wstring_view_t fmt, const Args &... args)
|
||||
#define SPDLOG_LOGGER_CALL(logger, level, ...) \
|
||||
do \
|
||||
{ \
|
||||
if (logger->should_log(level) || logger->should_backtrace()) \
|
||||
logger->log(spdlog::source_loc{__FILE__, __LINE__, SPDLOG_FUNCTION}, level, __VA_ARGS__); \
|
||||
if ((logger)->should_log(level) || (logger)->should_backtrace()) \
|
||||
(logger)->log(spdlog::source_loc{__FILE__, __LINE__, SPDLOG_FUNCTION}, level, __VA_ARGS__); \
|
||||
} while (0)
|
||||
|
||||
#if SPDLOG_ACTIVE_LEVEL <= SPDLOG_LEVEL_TRACE
|
||||
|
Reference in New Issue
Block a user