From 9ac2225ff43e7ec74ec6a629383899f3b6e78d2c Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Tue, 11 May 2010 11:19:40 +0200 Subject: logging: introuduce log_level_str() to obtain the name of a log level --- src/logging.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src') diff --git a/src/logging.c b/src/logging.c index 7c508771..e5d459a0 100644 --- a/src/logging.c +++ b/src/logging.c @@ -58,6 +58,11 @@ int log_parse_level(const char *lvl) 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; -- cgit v1.2.3