std.log.template

+templates+

add-template

added in 3.0

(add-template class template)

adds a template to the registry

(add-template :error/test “The error is {{error/value}}”)

has-template?

added in 3.0

(has-template? class)

checks if template is registered

(has-template? :error/test)

list-templates

added in 3.0

(list-templates)

lists all registered templates

remove-template

added in 3.0

(remove-template class)

removes a template from the registry

render-message

added in 3.0

(render-message {:log/keys [class template], :as item})

returns a message given a :log/class or :log/template

(render-message {:log/class :error/test :error/value “HELLO”}) => “The error is HELLO”