Swap logger and format email.