Rewrite log messages