Writing access and email logs to files.