Codebase list logbook / upstream/1.4.3 benchmark / bench_disabled_logger.py
upstream/1.4.3

Tree @upstream/1.4.3 (Download .tar.gz)

bench_disabled_logger.py @upstream/1.4.3raw · history · blame

"""Tests with the whole logger disabled"""
from logbook import Logger


log = Logger('Test logger')
log.disabled = True


def run():
    for x in xrange(500):
        log.warning('this is not handled')