From e940dd14426c5a725fda70a154fd2bf4bb91ba44 Mon Sep 17 00:00:00 2001 From: Edward Rudd Date: Thu, 30 Oct 2008 23:03:13 +0000 Subject: add ability to skip N number of bad lines before throwing an error. Will log the bad lines to a log file so they can be preserved --- (limited to 'utility/config.h') diff --git a/utility/config.h b/utility/config.h index d4dde77..c627662 100644 --- a/utility/config.h +++ b/utility/config.h @@ -29,6 +29,12 @@ struct config_t { apr_file_t *errorlog_fperr; apr_pool_t *errorlog_p; + const char *badlinefile; + apr_file_t *badline_fp; + int badline_count; + int badlinemax; + + /** input directory of log files */ const char *input_dir; /** list of files to scan */ @@ -73,6 +79,7 @@ struct config_filestat_t { char *fname; apr_size_t linesparsed; apr_size_t lineskipped; + apr_size_t linesbad; const char *result; apr_time_t start; apr_time_t stop; -- cgit v0.9.2