(assert-logs expectation & body)
Execute body, capture the logs, and avow that the captured logs match the expectation.
Execute body, capture the logs, and avow that the captured logs match the expectation.
(capture & body)
Capture the logs being written.
Capture the logs being written.
(deflogged symbol docs bindings & body)
Define a function that logs its inputs and outputs (and errors). Will not log inputs whose symbol begins with an underscore.
Define a function that logs its inputs and outputs (and errors). Will not log inputs whose symbol begins with an underscore.
(log & args)
Write to the log.
required argument that should be first.
keyword to indicate the log level or a vector of [logger-name level]
optional arguments that may appear in any order.
a map of additional data to write to the log entry. a throwable instance to include a stack trace / exception data. string message that can be formatted with data from the data map.
Write to the log. required argument that should be first. keyword to indicate the log level or a vector of [logger-name level] optional arguments that may appear in any order. a map of additional data to write to the log entry. a throwable instance to include a stack trace / exception data. string message that can be formatted with data from the data map.
(set-configuration! config)
Set logging configuration options.
Set logging configuration options.
(with-config config & body)
Alters the config/config binding to new configuration for the execution of body.
Alters the config/*config* binding to new configuration for the execution of body.
(with-context context & body)
Add data onto the context stack to be included in any logs. Data is deep merged with data already on the stack.
Add data onto the context stack to be included in any logs. Data is deep merged with data already on the stack.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close