yasnippet: function and log