9 #include <initializer_list> 16 #if defined(_WIN32) && defined(SPDLOG_WCHAR_FILENAMES) 24 #if defined(_MSC_VER) && (_MSC_VER < 1900) 25 #define SPDLOG_NOEXCEPT throw() 26 #define SPDLOG_CONSTEXPR 28 #define SPDLOG_NOEXCEPT noexcept 29 #define SPDLOG_CONSTEXPR constexpr 33 #if !defined(SPDLOG_FINAL) 37 #if defined(__GNUC__) || defined(__clang__) 38 #define SPDLOG_DEPRECATED __attribute__((deprecated)) 39 #elif defined(_MSC_VER) 40 #define SPDLOG_DEPRECATED __declspec(deprecated) 42 #define SPDLOG_DEPRECATED 59 using sink_ptr = std::shared_ptr < sinks::sink >;
62 #if defined(SPDLOG_NO_ATOMIC_LEVELS) 84 #if !defined(SPDLOG_LEVEL_NAMES) 85 #define SPDLOG_LEVEL_NAMES { "trace", "debug", "info", "warning", "error", "critical", "off" }; 93 return level_names[l];
153 #if defined(_WIN32) && defined(SPDLOG_WCHAR_FILENAMES)
static const char *level_names[] static SPDLOG_LEVEL_NAMES const char * short_level_names[]
spdlog_ex(const std::string &msg)
const char * what() const SPDLOG_NOEXCEPT override
std::shared_ptr< spdlog::formatter > formatter_ptr
std::shared_ptr< sinks::sink > sink_ptr
spdlog_ex(const std::string &msg, int last_errno)
std::string errno_str(int err_num)
const char * to_short_str(spdlog::level::level_enum l)
std::chrono::system_clock log_clock
std::initializer_list< sink_ptr > sinks_init_list
const char * to_str(spdlog::level::level_enum l)
std::atomic< int > level_t
#define SPDLOG_LEVEL_NAMES
std::function< void(const std::string &err_msg)> log_err_handler