Add log file rewriting.