diff options
author | Nick Mathewson <nickm@torproject.org> | 2004-11-05 05:50:35 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2004-11-05 05:50:35 +0000 |
commit | 2e8353e2f411d2df246eb46889ef0b8ec9799654 (patch) | |
tree | 1ff26954df36c050bbcdfc14b497028914ef88f0 /src/common | |
parent | 2ba3a9de168f87912b296e37a6b03bab45a102fe (diff) | |
download | tor-2e8353e2f411d2df246eb46889ef0b8ec9799654.tar.gz tor-2e8353e2f411d2df246eb46889ef0b8ec9799654.zip |
Use new log format; convert old format to new format.
svn:r2684
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 |