diff options
author | Jeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com> | 2011-03-24 16:31:18 +0000 |
---|---|---|
committer | Jeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com> | 2011-03-24 16:31:18 +0000 |
commit | 715ba3a676efe04ca2bd11a9d6727074b9a6edfb (patch) | |
tree | e63841da7e144e73a5399247eab107cb61e16068 /pykolab/conf/__init__.py | |
parent | 375d171c5c3ebe0129679231fdc98b9209c19605 (diff) | |
download | pykolab-715ba3a676efe04ca2bd11a9d6727074b9a6edfb.tar.gz |
Add -l option to specify the loglevel
Diffstat (limited to 'pykolab/conf/__init__.py')
-rw-r--r-- | pykolab/conf/__init__.py | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/pykolab/conf/__init__.py b/pykolab/conf/__init__.py index ccb0bfe..a57821a 100644 --- a/pykolab/conf/__init__.py +++ b/pykolab/conf/__init__.py @@ -271,7 +271,17 @@ class Conf(object): dest = "debuglevel", type = 'int', default = 0, - help = _("Set the debugging verbosity. Maximum is 99")) + help = _("Set the debugging " + \ + "verbosity. Maximum is 9, tracing " + \ + "protocols like LDAP, SQL and IMAP.")) + + runtime_group.add_option( "-l", + dest = "loglevel", + type = 'str', + default = "CRITICAL", + help = _("Set the logging level. " + \ + "One of info, warn, error, " + \ + "critical or debug")) runtime_group.add_option( "--logfile", dest = "logfile", |