(clear-context!)
clear-context! clears out context map from the context. This should be used when the thread is about to be either shut down or returned to a thread pool.
clear-context! clears out context map from the context. This should be used when the thread is about to be either shut down or returned to a thread pool.
(set-context! context-map)
set-context! puts the data from the context-map into the current thread's context.
set-context! puts the data from the context-map into the current thread's context.
(set-ext-svc-tag! tag)
Sets a value in the logging context which communicates the the operations in the current context are from the designated external service.
It is suggested that this key only be set within the scope of a 'with-logging-context' call. This is to ensure that the key will be automatically removed when the 'with-logging-context' macro restores the original logging context.
Sets a value in the logging context which communicates the the operations in the current context are from the designated external service. It is suggested that this key only be set within the scope of a 'with-logging-context' call. This is to ensure that the key will be automatically removed when the 'with-logging-context' macro restores the original logging context.
(with-logging-context context & body)
Use this to add a map to any logging wrapped in the macro. Macro can be nested. (with-logging-context {:key "value"} (log/info "yay"))
Use this to add a map to any logging wrapped in the macro. Macro can be nested. (with-logging-context {:key "value"} (log/info "yay"))
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close