handle new log levels logging output
This commit is contained in:
parent
9c75d94d70
commit
31fcf27c5a
1 changed files with 1 additions and 1 deletions
2
log.cpp
2
log.cpp
|
@ -134,7 +134,7 @@ void dolog(const log_level_t ll, const char *fmt, ...)
|
|||
#endif
|
||||
char *ts_str = nullptr;
|
||||
|
||||
const char *const ll_names[] = { "debug ", "info ", "warning", "error " };
|
||||
const char *const ll_names[] = { "emerg ", "alert ", "crit ", "error ", "warning", "notice ", "info ", "debug ", "none " };
|
||||
|
||||
asprintf(&ts_str, "%04d-%02d-%02d %02d:%02d:%02d.%06d] %s ",
|
||||
tm.tm_year + 1900, tm.tm_mon + 1, tm.tm_mday, tm.tm_hour, tm.tm_min, tm.tm_sec, int(now % 1000000),
|
||||
|
|
Loading…
Add table
Reference in a new issue