Modified TestLogger to use Mailer