Commit d39b495e authored by Gabi Melman's avatar Gabi Melman

Update spdlog.h

Updated comments about macros
parent 9603c2a2
...@@ -119,8 +119,10 @@ template <typename Sink, typename... Args> ...@@ -119,8 +119,10 @@ template <typename Sink, typename... Args>
std::shared_ptr<spdlog::logger> create(const std::string& logger_name, const 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: // Example:
// //
...@@ -136,7 +138,6 @@ std::shared_ptr<spdlog::logger> create(const std::string& logger_name, const Arg ...@@ -136,7 +138,6 @@ std::shared_ptr<spdlog::logger> create(const std::string& logger_name, const Arg
#define SPDLOG_TRACE(logger, ...) #define SPDLOG_TRACE(logger, ...)
#endif #endif
#ifdef SPDLOG_DEBUG_ON #ifdef SPDLOG_DEBUG_ON
#define SPDLOG_DEBUG(logger, ...) logger->debug(__VA_ARGS__) << " (" << __FILE__ << " #" << __LINE__ <<")"; #define SPDLOG_DEBUG(logger, ...) logger->debug(__VA_ARGS__) << " (" << __FILE__ << " #" << __LINE__ <<")";
#else #else
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment