Log inside template