fileConfig is in logging.config oldstable cubicweb-version-3.10.x
authorAlexandre Fayolle <alexandre.fayolle@logilab.fr>
Tue, 05 Apr 2011 08:39:49 +0200
brancholdstable
changeset 7178 a62f24e1497e
parent 7106 63f0bc280354
child 7179 00548a4b22a6
child 7254 c0278ad81823
fileConfig is in logging.config
cwconfig.py
--- a/cwconfig.py	Thu Mar 24 13:30:14 2011 +0100
+++ b/cwconfig.py	Tue Apr 05 08:39:49 2011 +0200
@@ -139,6 +139,7 @@
 import sys
 import os
 import logging
+import logging.config
 from smtplib import SMTP
 from threading import Lock
 from os.path import (exists, join, expanduser, abspath, normpath,
@@ -1098,7 +1099,7 @@
         # read a config file if it exists
         logconfig = join(self.apphome, 'logging.conf')
         if exists(logconfig):
-            logging.fileConfig(logconfig)
+            logging.config.fileConfig(logconfig)
 
     def available_languages(self, *args):
         """return available translation for an instance, by looking for