diff MoinMoin/i18n/__init__.py @ 3107:c6e39279f83b

refactor logging usage
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sat, 23 Feb 2008 22:59:30 +0100
parents 307abb1cf26a
children a48929a5036c
line wrap: on
line diff
--- a/MoinMoin/i18n/__init__.py	Sat Feb 23 21:45:02 2008 +0100
+++ b/MoinMoin/i18n/__init__.py	Sat Feb 23 22:59:30 2008 +0100
@@ -25,9 +25,14 @@
 """
 
 import os, gettext, glob
-import logging
 from StringIO import StringIO
 
+from MoinMoin.server import getLogger
+logging = getLogger(__name__)
+
+# use this to temporarily and selectively enable debug logging for this module
+#logging.setLevel(logging.DEBUG)
+
 from MoinMoin import caching
 
 # This is a global for a reason: in persistent environments all languages in