Rewrite logger