refactored logger config