email_logger.rb |
|
---|---|
If you are only interested in making use of this logging functionality and not
extending it or changing it in some way, you do not need to be familiar with
the code in this file. Just be sure to note that if you add
|
module Newman
module EmailLogger |
|
|
This method always at least provides a summary of the provided The main purpose of this method is to be used by |
def log_email(logger, prefix, email)
logger.debug(prefix) { "\n#{email}" }
logger.info(prefix) { email_summary(email) }
end |
|
|
NOTE: Methods below this point in the file are implementation details, and should not be depended upon |
private |
|
|
|
def email_summary(email)
{ :from => email.from,
:to => email.to,
:bcc => email.bcc,
:subject => email.subject,
:reply_to => email.reply_to }
end
end
end |