split logging config into separate class