@pytest.fixture(scope='session')
def log_counter():
 return itertools.count()

@ pytest . fixture ( scope = 'session' ) def log_counter ( ) : return itertools . count ( )
counter for logger fixture to get unique loggers .