Added email log handler