Accept a wider range of input patterns
[gnucomo.git] / src / gcm_input / error_cooker.cpp
index 3179c68..a4ce102 100644 (file)
@@ -8,7 +8,7 @@
 ***********************
 **      FILE NAME      : error_cooker.cpp
 **      SYSTEM NAME    : 
-**      VERSION NUMBER : $Revision: 1.1 $
+**      VERSION NUMBER : $Revision: 1.2 $
 **
 **  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.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.2 2003-12-22 10:22:22 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)\\] .+");
 
 bool error_cooker::check_pattern(String logline)
 {