coarse clock, short log level

This commit is contained in:
Denis Ivaykin
2015-01-27 08:31:50 -06:00
parent a788fb3ed3
commit 2f34de820b
3 changed files with 31 additions and 0 deletions

View File

@@ -71,10 +71,17 @@ typedef enum
static const char* level_names[] { "trace", "debug", "info", "notice", "warning", "error", "critical", "alert", "emerg", "off"};
static const char* short_level_names[] { "T", "D", "I", "N", "W", "E", "C", "A", "M", "O"};
inline const char* to_str(spdlog::level::level_enum l)
{
return level_names[l];
}
inline const char* to_short_str(spdlog::level::level_enum l)
{
return short_level_names[l];
}
} //level