Searched refs:logging (Results 1 - 17 of 17) sorted by relevance

/pkg/src/tests/api/
H A Dt_client.py32 import logging namespace
41 class _LogFilter(logging.Filter):
42 def __init__(self, max_level=logging.CRITICAL):
43 logging.Filter.__init__(self)
57 log_fmt = logging.Formatter()
59 # Enforce maximum logging level for informational messages.
60 info_h = logging.StreamHandler(info_out)
61 info_t = _LogFilter(logging.INFO)
64 info_h.setLevel(logging.INFO)
67 error_h = logging
[all...]
H A Dt_pkglint.py44 import logging namespace
47 logger = logging.getLogger("pkglint")
49 logger.setLevel(logging.WARNING)
50 ch = logging.StreamHandler()
51 formatter = logging.Formatter(log_fmt_string)
53 ch.setLevel(logging.WARNING)
868 # the other duplicate paths are linted. The second will result in us logging
/pkg/src/modules/client/
H A D__init__.py29 import logging namespace
35 class _LogFilter(logging.Filter):
36 def __init__(self, max_level=logging.CRITICAL):
37 logging.Filter.__init__(self)
44 class _StreamHandler(logging.StreamHandler):
45 """Simple subclass to ignore exceptions raised during logging output."""
178 logger = logging.getLogger("pkg")
186 logger = logging.getLogger("pkg")
196 level = logging.DEBUG
198 level = logging
[all...]
H A Dprintengine.py33 import logging namespace
209 python logger from the logging module. Note that This class is used by
258 """Test driver for logging print engine. This is maintained as a
263 logger = logging.getLogger('test')
264 ch = logging.StreamHandler(output_file)
267 pe = LoggingPrintEngine(logger, logging.WARNING)
268 pe.cprint("Testing logging print engine. ", end='')
/pkg/src/
H A Drad-invoke.py31 import logging namespace
39 class _InfoFilter(logging.Filter):
41 return rec.levelno <= logging.INFO
43 class _StreamHandler(logging.StreamHandler):
44 """Simple subclass to ignore exceptions raised during logging output."""
65 ips_logger = logging.getLogger("__name__")
67 ips_logger.setLevel(logging.INFO)
70 handler.setLevel(logging.INFO)
123 logging.shutdown()
H A Ddepot.py69 import logging namespace
818 h = logging.StreamHandler(LogSink())
820 h = logging.StreamHandler(eval("sys.{0}".format(
823 h.setLevel(logging.DEBUG)
838 # Now that our logging, etc. has been setup, it's safe to perform any
H A Ddepot-config.py31 import logging namespace
1002 logging.shutdown()
H A Dsysrepo.py32 import logging namespace
974 logging.shutdown()
H A Dpkgrepo.py55 import logging namespace
2377 logging.shutdown()
H A Dclient.py56 import logging namespace
5819 logging.shutdown()
/pkg/src/modules/lint/
H A Dlog.py27 import logging namespace
65 class TrackerHandler(logging.StreamHandler):
70 logging.StreamHandler.__init__(self, strm)
82 logging.StreamHandler.emit(self, record)
92 self.logger = logging.getLogger("pkglint_checks")
95 self.logger.setLevel(logging.INFO)
96 self._th.setLevel(logging.INFO)
H A Dengine.py37 import logging namespace
68 self.logger = logging.getLogger("pkglint")
316 self.logger = logging.getLogger("pkglint")
614 <name> is a substring of a pkglint id to skip logging errors
618 by the logging system, in combination with the engine calling
/pkg/src/util/publish/
H A Dpkglint.py28 import logging namespace
110 logger = logging.getLogger("pkglint")
111 ch = logging.StreamHandler(sys.stdout)
114 logger.setLevel(logging.DEBUG)
115 ch.setLevel(logging.DEBUG)
118 logger.setLevel(logging.INFO)
119 ch.setLevel(logging.INFO)
/pkg/src/modules/
H A Dpipeutils.py74 import logging namespace
105 # jsonrpclib 0.2.6's SimpleJSONRPCServer makes logging calls, but we don't
106 # configure logging in this file, so we attach a do-nothing handler to it to
108 logging.getLogger("jsonrpclib.SimpleJSONRPCServer").addHandler(
109 logging.NullHandler())
/pkg/src/util/apache2/depot/
H A Ddepot_index.py27 import logging namespace
815 application.log.access_log.setLevel(logging.WARNING)
/pkg/src/modules/server/
H A Drepository.py30 import logging namespace
705 def __log(self, msg, context="", severity=logging.INFO):
2821 def __log(self, msg, context="", severity=logging.INFO):
/pkg/src/tests/
H A Dpkg5unittest.py43 import logging namespace
214 class DebugLogHandler(logging.Handler):
221 logging.Handler.__init__(self)

Completed in 93 milliseconds