Package list logbook / debian/0.6.0-1 benchmark / bench_disabled_logger.py
debian/0.6.0-1

Tree @debian/0.6.0-1 (Download .tar.gz)

bench_disabled_logger.py @debian/0.6.0-1raw · 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')