Add logging to email daemon