#pragma once #include 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]; } } }