adding in support for console::log to send emails