add email logger feature