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

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

bench_logging_logger_creation.py @debian/0.6.0-1raw · history · blame

"""Test with no handler active"""
from logging import getLogger


root_logger = getLogger()


def run():
    for x in xrange(500):
        getLogger('Test')
        del root_logger.manager.loggerDict['Test']