log
Write to the log from your templates
{{ log:[type] }}
You can use the log
tag as either a single tag or a tag pair.
The [type]
should be replaced by the severity of the log.
Your options are (from least- to most-severe) debug
, info
, warn
, error
, or fatal
.
{{ log:debug }}
Something happened!
{{ /log:debug }}
{{ log:fatal message="Oh noes!" }}
Parameters
what
The label of your log message. Defaults to log
.
specifically
Additional context for your message. Defaults to message
.
message
The message to be logged, when using the single tag format.