Save logs using mongo and later for reporting.