***********************
** FILE NAME : error_cooker.cpp
** SYSTEM NAME :
-** VERSION NUMBER : $Revision: 1.1 $
+** VERSION NUMBER : $Revision: 1.3 $
**
** DESCRIPTION : Cooks Apache http daemon error log lines
**
/*****************************
$Log: error_cooker.cpp,v $
- Revision 1.1 2003-08-11 16:56:16 arjen
+ Revision 1.3 2007-12-10 16:13:16 arjen
+ Accept [info] as a valid httpd error line.
+
+ Revision 1.2 2003/12/22 10:22:22 arjen
+ Accept a wider range of input patterns
+
+ Revision 1.1 2003/08/11 16:56:16 arjen
Different kinds of log files are parsed by a collection of objects
of different classes, derived from the base class line_cooker
Depending on the message content or the message_type element in
*****************************/
-/* static const char *RCSID = "$Id: error_cooker.cpp,v 1.1 2003-08-11 16:56:16 arjen Exp $"; */
+/* static const char *RCSID = "$Id: error_cooker.cpp,v 1.3 2007-12-10 16:13:16 arjen Exp $"; */
#include <ctype.h>
#include "error_cooker.h"
static const String unix_date_re("[[:alpha:]]{3} [[:alpha:]]{3} [ 123][0-9] [0-9]{2}:[0-9]{2}:[0-9]{2} [0-9]{4}");
-static const regex re_errorlog("^\\[" + unix_date_re + "\\] \\[(error|notice)\\] .+");
+static const regex re_errorlog("^\\[" + unix_date_re + "\\] \\[(error|notice|warn|info)\\] .+");
bool error_cooker::check_pattern(String logline)
{