Liking cljdoc? Tell your friends :D

std.log.template


+templates+clj


add-templateclj

(add-template class template)

adds a template to the registry

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

adds a template to the registry

(add-template :error/test "The error is {{error/value}}")
raw docstring

has-template?clj

(has-template? class)

checks if template is registered

(has-template? :error/test)

checks if template is registered

(has-template? :error/test)
raw docstring

list-templatesclj

(list-templates)

lists all registered templates

lists all registered templates
raw docstring

remove-templateclj

(remove-template class)

removes a template from the registry

removes a template from the registry
raw docstring

render-messageclj

(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"

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

(render-message {:log/class :error/test
                 :error/value "HELLO"})
=> "The error is HELLO"
raw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close