mirror of
https://github.com/gabime/spdlog.git
synced 2025-01-24 06:32:06 +08:00
comments
This commit is contained in:
parent
fb1a3a3a12
commit
0a8cce6984
@ -291,9 +291,18 @@ inline void critical(const wchar_t *fmt, const Args &... args)
|
|||||||
#endif // SPDLOG_WCHAR_TO_UTF8_SUPPORT
|
#endif // SPDLOG_WCHAR_TO_UTF8_SUPPORT
|
||||||
|
|
||||||
//
|
//
|
||||||
// compile time macros.
|
// enable/disable log calls at compile time according to global level.
|
||||||
// can be enabled/disabled using SPDLOG_ACTIVE_LEVEL (info by default).
|
|
||||||
//
|
//
|
||||||
|
// define SPDLOG_ACTIVE_LEVEL to one of those (before including spdlog.h):
|
||||||
|
// SPDLOG_LEVEL_TRACE,
|
||||||
|
// SPDLOG_LEVEL_DEBUG,
|
||||||
|
// SPDLOG_LEVEL_INFO,
|
||||||
|
// SPDLOG_LEVEL_WARN,
|
||||||
|
// SPDLOG_LEVEL_ERROR,
|
||||||
|
// SPDLOG_LEVEL_CRITICAL,
|
||||||
|
// SPDLOG_LEVEL_OFF
|
||||||
|
//
|
||||||
|
|
||||||
|
|
||||||
#if SPDLOG_ACTIVE_LEVEL <= SPDLOG_LEVEL_TRACE
|
#if SPDLOG_ACTIVE_LEVEL <= SPDLOG_LEVEL_TRACE
|
||||||
#define SPDLOG_LOGGER_TRACE(logger, ...) logger->trace(__VA_ARGS__)
|
#define SPDLOG_LOGGER_TRACE(logger, ...) logger->trace(__VA_ARGS__)
|
||||||
|
Loading…
Reference in New Issue
Block a user