Add log generation.