Rewriting log to file feature