Codebase list logbook / 7d426ea0-c190-4fad-8e29-bd21870a826f/main benchmark / bench_logging_logger_creation.py
7d426ea0-c190-4fad-8e29-bd21870a826f/main

Tree @7d426ea0-c190-4fad-8e29-bd21870a826f/main (Download .tar.gz)

bench_logging_logger_creation.py @7d426ea0-c190-4fad-8e29-bd21870a826f/mainraw · 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']