commit | 9ac2225ff43e7ec74ec6a629383899f3b6e78d2c | [log] [tgz] |
---|---|---|
author | Harald Welte <laforge@gnumonks.org> | Tue May 11 11:19:40 2010 +0200 |
committer | Harald Welte <laforge@gnumonks.org> | Tue May 11 11:19:40 2010 +0200 |
tree | 8172360ffe0827a2717e31f6ed0c3b3a98fc092f | |
parent | 95df5c0179f6b24d31c6720a43434755ed58aa22 [diff] |
logging: introuduce log_level_str() to obtain the name of a log level
diff --git a/src/logging.c b/src/logging.c index 7c50877..e5d459a 100644 --- a/src/logging.c +++ b/src/logging.c
@@ -58,6 +58,11 @@ return get_string_value(loglevel_strs, lvl); } +const char *log_level_str(unsigned int lvl) +{ + return get_value_string(loglevel_strs, lvl); +} + int log_parse_category(const char *category) { int i;