If you iterate over the log names, rather than the log objects, then you can put the `logging.getLogger` call inside the loop as well.