comparison 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
comparison
equal deleted inserted replaced
3106:af3dd2bc85cc 3107:c6e39279f83b
23 2005-2008 MoinMoin:ThomasWaldmann 23 2005-2008 MoinMoin:ThomasWaldmann
24 @license: GNU GPL, see COPYING for details. 24 @license: GNU GPL, see COPYING for details.
25 """ 25 """
26 26
27 import os, gettext, glob 27 import os, gettext, glob
28 import logging
29 from StringIO import StringIO 28 from StringIO import StringIO
29
30 from MoinMoin.server import getLogger
31 logging = getLogger(__name__)
32
33 # use this to temporarily and selectively enable debug logging for this module
34 #logging.setLevel(logging.DEBUG)
30 35
31 from MoinMoin import caching 36 from MoinMoin import caching
32 37
33 # This is a global for a reason: in persistent environments all languages in 38 # This is a global for a reason: in persistent environments all languages in
34 # use will be cached; Note: you have to restart if you update language data. 39 # use will be cached; Note: you have to restart if you update language data.