Add log data recording