Add logging to CONSTRUCT template engine