diff MoinMoin/wikiutil.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 0f64646b9deb
children a48929a5036c
line wrap: on
line diff
--- a/MoinMoin/wikiutil.py	Sat Feb 23 21:45:02 2008 +0100
+++ b/MoinMoin/wikiutil.py	Sat Feb 23 22:59:30 2008 +0100
@@ -16,7 +16,12 @@
 import re
 import time
 import urllib
-import logging
+
+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 config
 from MoinMoin.util import pysupport, lock