Codebase list logbook / upstream/0.6.0 benchmark / bench_logging_logger_creation.py
upstream/0.6.0

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

bench_logging_logger_creation.py @upstream/0.6.0raw · 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']