diff options
Diffstat (limited to 'src/common')
-rw-r--r-- | src/common/log.c | 5 | ||||
-rw-r--r-- | src/common/log.h | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/src/common/log.c b/src/common/log.c index f468487da3..569d6b2fa2 100644 --- a/src/common/log.c +++ b/src/common/log.c @@ -397,6 +397,11 @@ int parse_log_level(const char *level) { return -1; } +const char *log_level_to_string(int level) +{ + return sev_to_string(level); +} + int get_min_log_level(void) { logfile_t *lf; diff --git a/src/common/log.h b/src/common/log.h index 10e6c87dc6..c2a4ea176f 100644 --- a/src/common/log.h +++ b/src/common/log.h @@ -56,6 +56,7 @@ typedef void (*log_callback)(int severity, const char *msg); int parse_log_level(const char *level); +const char *log_level_to_string(int level); void add_stream_log(int severityMin, int severityMax, const char *name, FILE *stream); int add_file_log(int severityMin, int severityMax, const char *filename); #ifdef HAVE_SYSLOG_H |