mirror of
https://github.com/gabime/spdlog.git
synced 2025-01-26 15:39:03 +08:00
Update spdlog.h
Updated comments about macros
This commit is contained in:
parent
9603c2a20c
commit
d39b495e21
@ -119,8 +119,10 @@ template <typename Sink, typename... Args>
|
||||
std::shared_ptr<spdlog::logger> create(const std::string& logger_name, const Args&...);
|
||||
|
||||
//
|
||||
// Trace & debug macros to be switched on/off at compile time for zero cost debug statements.
|
||||
// Note: using these mactors overrides the runtime log threshold of the logger.
|
||||
//
|
||||
// Macros to be display source file & line
|
||||
//
|
||||
// Trace & debug can be switched on/off at compile time for zero cost debug statements.
|
||||
//
|
||||
// Example:
|
||||
//
|
||||
@ -136,7 +138,6 @@ std::shared_ptr<spdlog::logger> create(const std::string& logger_name, const Arg
|
||||
#define SPDLOG_TRACE(logger, ...)
|
||||
#endif
|
||||
|
||||
|
||||
#ifdef SPDLOG_DEBUG_ON
|
||||
#define SPDLOG_DEBUG(logger, ...) logger->debug(__VA_ARGS__) << " (" << __FILE__ << " #" << __LINE__ <<")";
|
||||
#else
|
||||
|
Loading…
Reference in New Issue
Block a user