added log in template