logger + mail