Codebase list logbook / 854b2064-14b6-4be9-9d9b-f6a59b8db224/main benchmark / bench_logging_logger_creation.py
854b2064-14b6-4be9-9d9b-f6a59b8db224/main

Tree @854b2064-14b6-4be9-9d9b-f6a59b8db224/main (Download .tar.gz)

bench_logging_logger_creation.py @854b2064-14b6-4be9-9d9b-f6a59b8db224/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']