comparison src/syslogconfig.h @ 20:0d65c3de34fd

add better logging
author carl
date Sun, 08 Jan 2006 12:36:57 -0800
parents d76f9ff42487
children 28fec0c67646
comparison
equal deleted inserted replaced
19:13b2e663b553 20:0d65c3de34fd
34 int index; // zero based substring of the regex match that contains the ip address or hostname 34 int index; // zero based substring of the regex match that contains the ip address or hostname
35 int amount; // count to add to the ip address leaky bucket 35 int amount; // count to add to the ip address leaky bucket
36 public: 36 public:
37 ~PATTERN(); 37 ~PATTERN();
38 PATTERN(TOKEN &tok, char *pattern_, int index_, int amount_); 38 PATTERN(TOKEN &tok, char *pattern_, int index_, int amount_);
39 bool process(char *buf, CONFIG &con); 39 bool process(char *buf, CONFIG &con, char *file_name, int pattern_index);
40 void dump(int level); 40 void dump(int level);
41 }; 41 };
42 42
43 typedef SYSLOGCONFIG * SYSLOGCONFIGP; 43 typedef SYSLOGCONFIG * SYSLOGCONFIGP;
44 typedef PATTERN * PATTERNP; 44 typedef PATTERN * PATTERNP;