diff options
author | Robert James Kaes <rjkaes@users.sourceforge.net> | 2000-09-21 16:53:51 +0000 |
---|---|---|
committer | Robert James Kaes <rjkaes@users.sourceforge.net> | 2000-09-21 16:53:51 +0000 |
commit | 30f36f3aa69470cf73412c7b1c209a0081bf7bf7 (patch) | |
tree | e597f3689d283f538359c0d527351d4726b603ea /src | |
parent | 1deed67e1f30d5e1755445ab6194d76529aebe8e (diff) | |
download | tinyproxy-30f36f3aa69470cf73412c7b1c209a0081bf7bf7.tar.gz tinyproxy-30f36f3aa69470cf73412c7b1c209a0081bf7bf7.zip |
Added the LOG_NOTICE level.
Diffstat (limited to '')
-rw-r--r-- | src/log.c | 4 | ||||
-rw-r--r-- | src/log.h | 8 |
2 files changed, 9 insertions, 3 deletions
@@ -1,4 +1,4 @@ -/* $Id: log.c,v 1.2 2000-09-11 23:47:52 rjkaes Exp $ +/* $Id: log.c,v 1.3 2000-09-21 16:53:51 rjkaes Exp $ * * Logs the various messages which tinyproxy produces to either a log file or * the syslog daemon. Not much to it... @@ -29,7 +29,7 @@ static char *syslog_level[] = { "CRITICAL", "ERROR", "WARNING", - NULL, + "NOTICE", "INFO", "DEBUG" }; @@ -1,4 +1,4 @@ -/* $Id: log.h,v 1.2 2000-09-11 23:47:52 rjkaes Exp $ +/* $Id: log.h,v 1.3 2000-09-21 16:53:51 rjkaes Exp $ * * See 'log.c' for a detailed description. * @@ -51,6 +51,11 @@ * it's default port), but it's a _higher_ level situation * which the admin should be aware of. * + * LOG_NOTICE This is for a special condition. Nothing has gone wrong, but + * it is more important than the common LOG_INFO level. Right + * now it is used for actions like creating/destroying threads, + * unauthorized access, signal handling, etc. + * * LOG_INFO Everything else ends up here. Logging for incoming * connections, denying due to filtering rules, unable to * connect to remote server, etc. @@ -66,6 +71,7 @@ # define LOG_CRIT 2 # define LOG_ERR 3 # define LOG_WARNING 4 +# define LOG_NOTICE 5 # define LOG_INFO 6 # define LOG_DEBUG 7 #endif |