logging settings updated. now supported emails for errors & log to rotated file for warnings.