Removed source logging

This commit is contained in:
gabime 2019-03-24 00:31:55 +02:00
parent ea3943a87a
commit 91d450df4e

View File

@ -23,11 +23,8 @@
#define SPDLITE_LOGGER_CALL(logger, level, ...) logger.log(level, __VA_ARGS__) #define SPDLITE_LOGGER_CALL(logger, level, ...) logger.log(level, __VA_ARGS__)
// with source info
#define SPDLITE_LOGGER_CALL2(logger, level, ...) logger.log(spdlog::lite::src_loc{__FILE__, __LINE__, __FUNCTION__}, level, __VA_ARGS__)
#if SPDLITE_ACTIVE_LEVEL <= SPDLITE_LEVEL_TRACE #if SPDLITE_ACTIVE_LEVEL <= SPDLITE_LEVEL_TRACE
#define SPDLITE_LOGGER_TRACE(logger, ...) SPDLITE_LOGGER_CALL2(logger, spdlog::lite::level::trace, __VA_ARGS__) #define SPDLITE_LOGGER_TRACE(logger, ...) SPDLITE_LOGGER_CALL(logger, spdlog::lite::level::trace, __VA_ARGS__)
#define SPDLITE_TRACE(...) SPDLITE_LOGGER_TRACE(spdlog::lite::default_logger(), __VA_ARGS__) #define SPDLITE_TRACE(...) SPDLITE_LOGGER_TRACE(spdlog::lite::default_logger(), __VA_ARGS__)
#else #else
#define SPDLITE_LOGGER_TRACE(logger, ...) (void)0 #define SPDLITE_LOGGER_TRACE(logger, ...) (void)0