enable logging config earlier