From caae8dcfed1462cb19c82f99087e6fe2ba3d407c Mon Sep 17 00:00:00 2001 From: Edward Rudd Date: Sat, 25 Oct 2008 04:25:56 +0000 Subject: implemented logging added better error messages for DB connections fix several segfaults --- (limited to 'utility/config.h') diff --git a/utility/config.h b/utility/config.h index 611e9de..763ef5d 100644 --- a/utility/config.h +++ b/utility/config.h @@ -7,10 +7,11 @@ #include "ap_pcre.h" typedef enum { - LOGLEVEL_QUIET = 0, - LOGLEVEL_ERROR = 1, - LOGLEVEL_WARN = 2, - LOGLEVEL_DEBUG = 3, + LOGLEVEL_NOISE = 0, + LOGLEVEL_NONE, + LOGLEVEL_ERROR, + LOGLEVEL_NOTICE, + LOGLEVEL_DEBUG, } loglevel_e; typedef struct config_dbd_t config_dbd_t; @@ -25,6 +26,7 @@ struct config_t { loglevel_e loglevel; /** error_log */ apr_file_t *errorlog_fp; + apr_file_t *errorlog_fperr; apr_pool_t *errorlog_p; /** input directory of log files */ @@ -59,6 +61,8 @@ struct config_t { /** Dry Run */ int dryrun; + /** dump configuration only */ + int dump; /* Show the summary */ int summary; -- cgit v0.9.2