From: Leandro Lucarella Date: Mon, 16 Jun 2008 21:49:15 +0000 (-0300) Subject: Move logging module setup to pymind. X-Git-Url: https://git.llucax.com/software/pymin.git/commitdiff_plain/756a0232952c65c75bcd39b4345490a403cefb73 Move logging module setup to pymind. logging module setup should go in a configuration file, but for now we keep it in the pymind program to leave things functional until then. --- diff --git a/config.py b/config.py index 895e51a..a2e36d7 100644 --- a/config.py +++ b/config.py @@ -1,13 +1,5 @@ # vim: set et sts=4 sw=4 encoding=utf-8 : -# First of all, we need to setup the logging framework -import logging -logging.basicConfig( - level = logging.DEBUG, - format = '%(asctime)s %(name)-24s %(levelname)-8s %(message)s', - datefmt = '%a, %d %b %Y %H:%M:%S', -) - from pymin.dispatcher import Handler from os.path import join diff --git a/pymind b/pymind index 3014539..22fb092 100755 --- a/pymind +++ b/pymind @@ -3,6 +3,13 @@ import sys import logging ; log = logging.getLogger('pymind') +# First of all, we need to setup the logging framework +# FIXME: this should go in a configuration file +logging.basicConfig( + level = logging.DEBUG, + format = '%(asctime)s %(name)-24s %(levelname)-8s %(message)s', + datefmt = '%a, %d %b %Y %H:%M:%S', +) from pymin.pymindaemon import PyminDaemon from pymin.dispatcher import Handler