Lines Matching refs:logging
90 # PYXPCOM_LOG_LEVEL=level - level may be a number or a logging level
94 import logging
96 # enough of a stream to keep logging happy
107 hdlr = logging.StreamHandler(ConsoleServiceStream())
108 fmt = logging.Formatter(logging.BASIC_FORMAT)
110 # There is a bug in 2.3 and 2.4.x logging module in that it doesn't
113 # Later versions of logging use an RLock, so we detect an "old" style
123 stream = sys.stderr # this is what logging uses as default
133 hdlr = logging.StreamHandler(stream)
138 fmt = logging.Formatter(logging.BASIC_FORMAT)
149 level = int(getattr(logging, level.upper()))
157 logger = logging.getLogger('xpcom')
164 del ConsoleServiceStream, logging, setupLogging