diff options
author | Robert James Kaes <rjkaes@users.sourceforge.net> | 2001-06-02 03:10:09 +0000 |
---|---|---|
committer | Robert James Kaes <rjkaes@users.sourceforge.net> | 2001-06-02 03:10:09 +0000 |
commit | a9720e85f6e47df91622d6b66ee13c45cf0eb060 (patch) | |
tree | c07b641dc1482e3436b174841b9a3bc16fb19194 /src/scanner.l | |
parent | 2925b1841218ad90d0ecab84f133ffc1b86c2932 (diff) |
Include LogLevel and it's settings into the grammar of the config file.
Diffstat (limited to 'src/scanner.l')
-rw-r--r-- | src/scanner.l | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/scanner.l b/src/scanner.l index 86c2b77..01c5843 100644 --- a/src/scanner.l +++ b/src/scanner.l @@ -1,4 +1,4 @@ -/* $Id: scanner.l,v 1.2 2001-01-02 19:30:40 rjkaes Exp $ +/* $Id: scanner.l,v 1.3 2001-06-02 03:10:09 rjkaes Exp $ * * This builds the scanner for the tinyproxy configuration file. This * file needs to stay in sync with grammar.y. If someone knows lex and yacc @@ -50,6 +50,14 @@ static struct keyword keywords[] = { { "allow", KW_ALLOW }, { "deny", KW_DENY }, + /* loglevel and the settings */ + { "loglevel", KW_LOGLEVEL }, + { "critical", KW_LOG_CRITICAL }, + { "error", KW_LOG_ERROR }, + { "warning", KW_LOG_WARNING }, + { "notice", KW_LOG_NOTICE }, + { "info", KW_LOG_INFO }, + /* on/off switches */ { "yes", KW_YES }, { "on", KW_YES }, @@ -143,4 +151,4 @@ static void append_char(char c) *tiny_str = c; tiny_str++; *tiny_str = 0; -}
\ No newline at end of file +} |