summaryrefslogtreecommitdiffstats
path: root/pykolab/__init__.py
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2011-03-23 13:12:10 +0000
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2011-03-23 13:12:10 +0000
commit50519b624a9e3aeb67cad2131ebe227d1d38f4d1 (patch)
treee6eddf43491ec374d31156d9b24e767f4330362c /pykolab/__init__.py
parente853de01cbc077e9cd31b2f479631ed87dfd1a30 (diff)
downloadpykolab-50519b624a9e3aeb67cad2131ebe227d1d38f4d1.tar.gz
Provide the functions for logging and config enhancements applied throughout the rest of the software
Diffstat (limited to 'pykolab/__init__.py')
-rw-r--r--pykolab/__init__.py19
1 files changed, 14 insertions, 5 deletions
diff --git a/pykolab/__init__.py b/pykolab/__init__.py
index 9855af3..3f751b9 100644
--- a/pykolab/__init__.py
+++ b/pykolab/__init__.py
@@ -17,13 +17,22 @@
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#
-import traceback
+import logging
import shutil
import sys
+import traceback
+
+from pykolab.logger import Logger
+logging.setLoggerClass(Logger)
-import pykolab
-import pykolab.plugins
+def getLogger(name):
+ logging.setLoggerClass(Logger)
+ log = logging.getLogger(name=name)
+ return log
from pykolab.conf import Conf
-from pykolab.constants import *
-from pykolab.translate import _
+
+conf = Conf()
+
+def getConf():
+ return conf