Use new log format; convert old format to new format.

svn:r2684
This commit is contained in:
Nick Mathewson
2004-11-05 05:50:35 +00:00
parent 2ba3a9de16
commit 2e8353e2f4
4 changed files with 162 additions and 50 deletions
+5
View File
@@ -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;
+1
View File
@@ -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