diff MoinMoin/formatter/__init__.py @ 3110:a48929a5036c

logging: make it work correctly by doing logging configuration very early
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Mon, 25 Feb 2008 03:41:39 +0100
parents c6e39279f83b
children e06e15e90ba7
line wrap: on
line diff
--- a/MoinMoin/formatter/__init__.py	Sun Feb 24 12:50:54 2008 +0100
+++ b/MoinMoin/formatter/__init__.py	Mon Feb 25 03:41:39 2008 +0100
@@ -9,11 +9,8 @@
 """
 import re
 
-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 log
+logging = log.getLogger(__name__)
 
 from MoinMoin.util import pysupport
 from MoinMoin import wikiutil