Add a final logging step.