save log to firebase