Adds ability to mail log as JSON attachment