Actually the logging conf doesn't need to be in the critical section.