SMTP outgoing email logs

SMTP outgoing email logs

How can I see my SMTP outgoing email logs, especially error logs and cause of error?