logger: improve

fix #4