removed level defines
This commit is contained in:
		@@ -57,26 +57,18 @@ using level_t = std::atomic_int;
 | 
				
			|||||||
#endif
 | 
					#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
 | 
					//Log level enum
 | 
				
			||||||
namespace level
 | 
					namespace level
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
typedef enum
 | 
					typedef enum
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
    trace = SPDLOG_LEVEL_TRACE,
 | 
					    trace = 0,
 | 
				
			||||||
    debug = SPDLOG_LEVEL_DEBUG,
 | 
					    debug = 1,
 | 
				
			||||||
    info = SPDLOG_LEVEL_INFO,
 | 
					    info = 2,
 | 
				
			||||||
    warn = SPDLOG_LEVEL_WARN,
 | 
					    warn = 3,
 | 
				
			||||||
    err = SPDLOG_LEVEL_ERR,
 | 
					    err = 4,
 | 
				
			||||||
    critical = SPDLOG_LEVEL_CRIT,
 | 
					    critical = 5,
 | 
				
			||||||
    off = SPDLOG_LEVEL_OFF
 | 
					    off = 6
 | 
				
			||||||
} level_enum;
 | 
					} level_enum;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
static const char* level_names[] { "trace", "debug", "info",  "warning", "error", "critical", "off"};
 | 
					static const char* level_names[] { "trace", "debug", "info",  "warning", "error", "critical", "off"};
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user