loglevels
This commit is contained in:
parent
5c9a46aec7
commit
27b8aa490e
1 changed files with 9 additions and 0 deletions
9
log.cpp
9
log.cpp
|
@ -251,6 +251,15 @@ log_level_t parse_ll(const std::string & str)
|
|||
if (str == "error")
|
||||
return ll_error;
|
||||
|
||||
if (str == "critical")
|
||||
return ll_critical;
|
||||
|
||||
if (str == "alert")
|
||||
return ll_alert;
|
||||
|
||||
if (str == "emergency")
|
||||
return ll_emerg;
|
||||
|
||||
if (str == "none")
|
||||
return none;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue