Lines Matching full:logging
23 """Supports webkitpy logging."""
25 # FIXME: Move this file to webkitpy/python24 since logging needs to
28 import logging
35 _log = logging.getLogger(__name__)
65 # _log = logging.getLogger(__name__)
71 """Return a logging.logger for the given path.
125 return logging.getLogger(logger_name)
129 """Return a list of the default logging handlers to use.
137 """Return whether a logging.LogRecord should be logged."""
138 # FIXME: Enable the logging of autoinstall messages once
146 logging_filter = logging.Filter()
150 handler = logging.StreamHandler(stream)
151 formatter = logging.Formatter("%(name)s: [%(levelname)s] %(message)s")
160 """Configure logging for standard purposes.
163 A list of references to the logging handlers added to the root
166 testing where the caller may want to configure logging temporarily
170 logging_level: The minimum logging level to log. Defaults to
171 logging.INFO.
172 logger: A logging.logger instance to configure. This parameter
177 or else logging raises an error. Defaults to sys.stderr.
178 handlers: A list of logging.Handler instances to add to the logger
184 # logging module can throw an error like the following:
188 # lib/python2.6/logging/__init__.py", line 761, in emit
192 logging_level = logging.INFO
194 logger = logging.getLogger()
205 _log.debug("Debug logging enabled.")