Codebase list logbook / bullseye-backports/main benchmark / bench_logging_logger_creation.py
bullseye-backports/main

Tree @bullseye-backports/main (Download .tar.gz)

bench_logging_logger_creation.py @bullseye-backports/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']