refactor logger module #49