generate logging config properly