logging snipet jinja2 mode