Liking cljdoc? Tell your friends :D

service-logging.thread-context


clear-context!clj

(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.
sourceraw docstring

set-context!clj

(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.
sourceraw docstring

set-ext-svc-tag!clj

(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.
sourceraw docstring

with-logging-contextcljmacro

(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"))
sourceraw docstring

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

× close