summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2011-03-24 16:31:18 +0000
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2011-03-24 16:31:18 +0000
commit715ba3a676efe04ca2bd11a9d6727074b9a6edfb (patch)
treee63841da7e144e73a5399247eab107cb61e16068
parent375d171c5c3ebe0129679231fdc98b9209c19605 (diff)
downloadpykolab-715ba3a676efe04ca2bd11a9d6727074b9a6edfb.tar.gz
Add -l option to specify the loglevel
-rw-r--r--pykolab/conf/__init__.py12
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",