fn record_logs(recorded_logs: &mut Option<Vec<Log>>, log: &Log)
Records a log into the recorded logs vector, if it exists.