+import logging, logging.config ; log = logging.getLogger('pymind')
+# default logging configuration
+# (this is used before the user configuration file gets parsed)
+try:
+ # first we try to load a log config file
+ default = '/etc/pymin/log.init.ini'
+ logging.config.fileConfig(os.getenv('PYMIND_LOGINITCONF', default))
+except:
+ # then we try to load a reasonable default
+ logging.basicConfig(format='%(levelname)s: %(message)s')
+