rewrite logger/scoped logger