Use templates in the logger