log

The log tag generates a log object.

Syntax

This tag has several usage styles, each style resulting in a valid action object.

Block syntax

{% log %}
  {
    "foo": "bar"
  }
{% endlog %}

Tag syntax, single argument

{% log "foobar" %}

Tag syntax, mapped arguments

{% assign details = hash %}
{% assign details["foo"] = "bar" %}

{% log message: "Something to remember", details: details %}

Last updated