summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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