refactor Logger module