add log and produce files while recording