Implemented logging API for SMTP, POP and IMAP