Move logfile behavior to coverage