From 30326dad373119665f0082a8ee41e5be857f03b8 Mon Sep 17 00:00:00 2001 From: gabime Date: Sat, 9 Jul 2016 05:27:47 +0300 Subject: [PATCH] removed level defines --- include/spdlog/common.h | 22 +++++++--------------- 1 file changed, 7 insertions(+), 15 deletions(-) diff --git a/include/spdlog/common.h b/include/spdlog/common.h index 004c0af4..803d1cd1 100644 --- a/include/spdlog/common.h +++ b/include/spdlog/common.h @@ -57,26 +57,18 @@ using level_t = std::atomic_int; #endif -#define SPDLOG_LEVEL_TRACE 0 -#define SPDLOG_LEVEL_DEBUG 1 -#define SPDLOG_LEVEL_INFO 2 -#define SPDLOG_LEVEL_WARN 3 -#define SPDLOG_LEVEL_ERR 4 -#define SPDLOG_LEVEL_CRIT 5 -#define SPDLOG_LEVEL_OFF 6 - //Log level enum namespace level { typedef enum { - trace = SPDLOG_LEVEL_TRACE, - debug = SPDLOG_LEVEL_DEBUG, - info = SPDLOG_LEVEL_INFO, - warn = SPDLOG_LEVEL_WARN, - err = SPDLOG_LEVEL_ERR, - critical = SPDLOG_LEVEL_CRIT, - off = SPDLOG_LEVEL_OFF + trace = 0, + debug = 1, + info = 2, + warn = 3, + err = 4, + critical = 5, + off = 6 } level_enum; static const char* level_names[] { "trace", "debug", "info", "warning", "error", "critical", "off"};