refactor logger fix #49