Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.



Panel

Table of Contents
maxLevel3

...

Code Block
themeConfluence
firstline82
titletemplate.json
linenumberstrue
      "sysId": "535c354ed083489cb10413019d71a57c",
      "textType": "Plain"
    }
  ],
  "logLevel": "{{ log_level | title }}",
  "minReleaseLevel": "7.0.0.0",
  "name": "my_custom_template",

On line 86 of the snippet above, the value of logLevel was changed from Inherited to {{ log_level | title }}. Once again, this is Jinja2 syntax that will eventually be replaced with the specified value of log_level (or the default, if nothing is specified). Additionally, the built-intitle filter is applied to the value of log_level. This will ensure values like trACe end up as Trace (first letter capitalized and everything else lowercase) as required by template.json.


< Previous     Next >