Utilities for logging
Utilities for logging
(logging-threshold-fixture)(logging-threshold-fixture level)(logging-threshold-fixture level appender-name)(logging-threshold-fixture level appender-name logger-name)A fixture to set the logging level of a specified logger
A fixture to set the logging level of a specified logger
(logging-to-stdout & forms)Send log messages to stdout for inspection
Send log messages to stdout for inspection
(logging-to-string & forms)Send log messages to a string for inspection
Send log messages to a string for inspection
(suppress-logging & forms)Prevent log messages to reduce test log noise
Prevent log messages to reduce test log noise
(with-context bindings & body)Specify the logging context for a given body. bindings is a vector of
keyword value pairs to be set on the Mapped Diagnostic Context. If the
current logger doesn't support contexts, then the body is just wrapped in a
do. slf4j is the only supported logger at present.
Specify the logging context for a given `body`. `bindings` is a vector of keyword value pairs to be set on the Mapped Diagnostic Context. If the current logger doesn't support contexts, then the body is just wrapped in a `do`. slf4j is the only supported logger at present.
(with-log-to-string [& args] & body)Target the logger for an output string.
Target the logger for an output string.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs | 
| ← | Move to previous article | 
| → | Move to next article | 
| Ctrl+/ | Jump to the search field |