spdlog/include/c11log/common_types.h

29 lines
418 B
C++

#pragma once
#include <chrono>
namespace c11log
{
typedef std::chrono::system_clock log_clock;
namespace level
{
typedef enum
{
DEBUG,
INFO,
WARNING,
ERROR,
FATAL,
NONE = 99
} level_enum;
static const char* level_names[] { "debug", "info", "warning", "error", "fatal" };
inline const char* to_str(c11log::level::level_enum l)
{
return level_names[l];
}
}
}