diff options
author | Nick Mathewson <nickm@torproject.org> | 2004-05-19 20:07:08 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2004-05-19 20:07:08 +0000 |
commit | 9d2cd7fc6e01ee5aafeaf222b5020c464a01a03d (patch) | |
tree | 6aed917dcc979673b9870fd29ed41b07e1b36f44 /src/common/log.h | |
parent | 1a829b0df4faf09546d9e4e9bbcc657405aee94a (diff) | |
download | tor-9d2cd7fc6e01ee5aafeaf222b5020c464a01a03d.tar.gz tor-9d2cd7fc6e01ee5aafeaf222b5020c464a01a03d.zip |
Allow multiple logfiles at different severity ranges
svn:r1899
Diffstat (limited to 'src/common/log.h')
-rw-r--r-- | src/common/log.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/common/log.h b/src/common/log.h index fa830a9b46..786e7fcc12 100644 --- a/src/common/log.h +++ b/src/common/log.h @@ -46,8 +46,10 @@ #define CHECK_PRINTF(formatIdx, firstArg) #endif -void add_stream_log(int loglevel, const char *name, FILE *stream); -int add_file_log(int severity, const char *filename); +int parse_log_level(const char *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); +int get_min_log_level(void); void close_logs(); void reset_logs(); |