Public API

Namespaces

spdlog

Defines

Defines (spdlog.h)

SPDLOG_TRACE(logger,...)
(void)0

Trace & Debug can be switched on/off at compile time for zero cost debug statements. Uncomment SPDLOG_DEBUG_ON/SPDLOG_TRACE_ON in tweakme.h to enable. SPDLOG_TRACE(..) will also print current file and line.

Example: spdlog::set_level(spdlog::level::trace); SPDLOG_TRACE(my_logger, "some trace message"); SPDLOG_TRACE(my_logger, "another trace message {} {}", 1, 2); SPDLOG_DEBUG(my_logger, "some debug message {} {}", 3, 4);

Mentioned in:

Getting Started / Usage Example

3. Custom Formatting / Pattern flags

SPDLOG_DEBUG(logger,...)
(void)0

Mentioned in:






Add Discussion

Log in to comment