Codebase list logbook / multiarch-fixes/main benchmark / bench_logging_logger_creation.py
multiarch-fixes/main

Tree @multiarch-fixes/main (Download .tar.gz)

bench_logging_logger_creation.py @multiarch-fixes/main

9af17e1
 
 
 
 
 
 
 
 
 
 
"""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']