From e6be873f3d393ae6cfc7d976be7ed8ccc23c199b Mon Sep 17 00:00:00 2001 From: "Brian S. Stephan" Date: Thu, 26 Jul 2012 20:09:22 -0500 Subject: [PATCH] rename logger to drbotzo for clarity's sake --- Module.py | 2 +- dr.botzo.py | 2 +- logging.cfg | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Module.py b/Module.py index e7a4fda..df575cb 100644 --- a/Module.py +++ b/Module.py @@ -40,7 +40,7 @@ class Module(object): self.irc = irc self.config = config self.server = server - self.log = logging.getLogger('dr.botzo') + self.log = logging.getLogger('drbotzo') self.is_shutdown = False diff --git a/dr.botzo.py b/dr.botzo.py index 1a9e059..fadf319 100644 --- a/dr.botzo.py +++ b/dr.botzo.py @@ -53,7 +53,7 @@ except NoOptionError as e: irclib.DEBUG = config.getboolean('dr.botzo', 'debug') logging.config.fileConfig('logging.cfg') -log = logging.getLogger('dr.botzo') +log = logging.getLogger('drbotzo') try: # make sure we can initialize the database, if such a thing is diff --git a/logging.cfg b/logging.cfg index 185cdc1..0f7b3db 100644 --- a/logging.cfg +++ b/logging.cfg @@ -1,5 +1,5 @@ [loggers] -keys = root,dr.botzo +keys = root,drbotzo [handlers] keys = stdout,logfile @@ -11,7 +11,7 @@ keys = verbose level = INFO handlers = stdout,logfile -[logger_dr.botzo] +[logger_drbotzo] level = DEBUG handlers = stdout,logfile propagate = 0