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.
# vim: set et sts=4 sw=4 encoding=utf-8 :
# 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
from pymin.dispatcher import Handler
from os.path import join
import sys
import logging ; log = logging.getLogger('pymind')
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
from pymin.pymindaemon import PyminDaemon
from pymin.dispatcher import Handler