make log file configurable
dont try to email when not configured
Merge branch 'add_logfile_attribute'