Threadsafed logging config.