Add logging of template rendering.