logger variable template function