Public API

Namespaces

spdlog

Defines

Defines (spdlog.h)

SPDLOG_LOGGER_CALL(logger,level,...)
(logger)->log(spdlog::source_loc{__FILE__, __LINE__, SPDLOG_FUNCTION}, level, __VA_ARGS__)

enable/disable log calls at compile time according to global level.

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

SPDLOG_LOGGER_TRACE(logger,...)
SPDLOG_LOGGER_CALL(logger, spdlog::level::trace, __VA_ARGS__)

Mentioned in:

SPDLOG_TRACE(...)
SPDLOG_LOGGER_TRACE(spdlog::default_logger_raw(), __VA_ARGS__)

Mentioned in:

SPDLOG_LOGGER_DEBUG(logger,...)
SPDLOG_LOGGER_CALL(logger, spdlog::level::debug, __VA_ARGS__)

Mentioned in:

SPDLOG_DEBUG(...)
SPDLOG_LOGGER_DEBUG(spdlog::default_logger_raw(), __VA_ARGS__)

Mentioned in:

SPDLOG_LOGGER_INFO(logger,...)
SPDLOG_LOGGER_CALL(logger, spdlog::level::info, __VA_ARGS__)

Mentioned in:

SPDLOG_INFO(...)
SPDLOG_LOGGER_INFO(spdlog::default_logger_raw(), __VA_ARGS__)

Mentioned in:

SPDLOG_LOGGER_WARN(logger,...)
SPDLOG_LOGGER_CALL(logger, spdlog::level::warn, __VA_ARGS__)

SPDLOG_WARN(...)
SPDLOG_LOGGER_WARN(spdlog::default_logger_raw(), __VA_ARGS__)

SPDLOG_LOGGER_ERROR(logger,...)
SPDLOG_LOGGER_CALL(logger, spdlog::level::err, __VA_ARGS__)

SPDLOG_ERROR(...)
SPDLOG_LOGGER_ERROR(spdlog::default_logger_raw(), __VA_ARGS__)

SPDLOG_LOGGER_CRITICAL(logger,...)
SPDLOG_LOGGER_CALL(logger, spdlog::level::critical, __VA_ARGS__)

SPDLOG_CRITICAL(...)
SPDLOG_LOGGER_CRITICAL(spdlog::default_logger_raw(), __VA_ARGS__)






Add Discussion

Log in to comment