Lines Matching refs:logging
8 import logging
16 logging.debug('Module failed to be imported: sponge')
21 class SpongeLogHandler(logging.Handler):
34 def upload_results(job, log=logging.debug):
42 start_level = logging.getLogger().level
45 logging.getLogger().addHandler(log_handler)
46 logging.getLogger().setLevel(logging.DEBUG)
48 logging.info("added log handler")
51 logging.info('Starting sponge upload.')
55 logging.exception('Failed to upload to sponge.')
57 logging.getLogger().removeHandler(log_handler)
58 logging.getLogger().setLevel(start_level)