Liking cljdoc? Tell your friends :D

cambium.core


context-valclj

(context-val k)
(context-val repo stringify-key destringify-val k)

Return the value of the specified key from the current context; behavior for non-existent keys would be implementation dependent - it may return nil or may throw exception.

Return the value of the specified key from the current context; behavior for non-existent keys would be
implementation dependent - it may return nil or may throw exception.
sourceraw docstring

current-mdc-contextclj

source

debugcljmacro

(debug msg)
(debug mdc msg)
(debug mdc throwable msg)

Similar to clojure.tools.logging/debug.

Similar to clojure.tools.logging/debug.
sourceraw docstring

defloggercljmacro

(deflogger logger-sym logger-name)
(deflogger logger-sym logger-name log-level error-log-level)

Define a custom logger with spcified logger name. You may optionally specify normal (:info by default) and error (:error by default) log levels.

Define a custom logger with spcified logger name. You may optionally specify normal (:info by default) and error
(:error by default) log levels.
sourceraw docstring

destringify-valclj

Arity-1 fn to convert MDC string back to original value. By default this simply returns the stored String value.

Arity-1 fn to convert MDC string back to original value. By default this simply returns the stored String value.
sourceraw docstring

errorcljmacro

(error msg)
(error mdc msg)
(error mdc throwable msg)

Similar to clojure.tools.logging/error.

Similar to clojure.tools.logging/error.
sourceraw docstring

fatalcljmacro

(fatal msg)
(fatal mdc msg)
(fatal mdc throwable msg)

Similar to clojure.tools.logging/fatal.

Similar to clojure.tools.logging/fatal.
sourceraw docstring

get-contextclj

(get-context)

Return a copy of the current context containing string keys and original values.

Return a copy of the current context containing string keys and original values.
sourceraw docstring

infocljmacro

(info msg)
(info mdc msg)
(info mdc throwable msg)

Similar to clojure.tools.logging/info.

Similar to clojure.tools.logging/info.
sourceraw docstring

level-keysclj

source

level-symsclj

Symbols levels

Symbols levels
sourceraw docstring

logcljmacro

(log level msg)
(log logger level msg)
(log level mdc throwable msg)
(log logger level mdc throwable msg)

Log an event or message under specified logger and log-level.

Log an event or message under specified logger and log-level.
sourceraw docstring

merge-logging-context!clj

(merge-logging-context! context)
(merge-logging-context! dest
                        stringify-key
                        stringify-val
                        destringify-val
                        context)

Merge given context map into the current MDC using the following constraints:

  • Nil keys are ignored
  • Nil values are considered as deletion-request for corresponding keys
  • Keys are converted to string
  • Keys in the current context continue to have old values unless they are overridden by the specified context map
  • Keys in the context map may not be nested (for nesting support consider 'cambium.nested/merge-nested-context!')
Merge given context map into the current MDC using the following constraints:
* Nil keys are ignored
* Nil values are considered as deletion-request for corresponding keys
* Keys are converted to string
* Keys in the current context continue to have old values unless they are overridden by the specified context map
* Keys in the context map may not be nested (for nesting support consider 'cambium.nested/merge-nested-context!')
sourceraw docstring

stringify-keyclj

Arity-1 fn to convert MDC key into a string. By default this carries out a plain string conversion.

Arity-1 fn to convert MDC key into a string. By default this carries out a plain string conversion.
sourceraw docstring

stringify-valclj

Arity-1 fn to convert MDC value into a string. By default this carries out a plain string conversion.

Arity-1 fn to convert MDC value into a string. By default this carries out a plain string conversion.
sourceraw docstring

tracecljmacro

(trace msg)
(trace mdc msg)
(trace mdc throwable msg)

Similar to clojure.tools.logging/trace.

Similar to clojure.tools.logging/trace.
sourceraw docstring

warncljmacro

(warn msg)
(warn mdc msg)
(warn mdc throwable msg)

Similar to clojure.tools.logging/warn.

Similar to clojure.tools.logging/warn.
sourceraw docstring

with-logging-contextcljmacro

(with-logging-context context & body)

Given context map data, merge it into the current MDC and evaluate the body of code in that context. Restore original context in the end. See: cambium.core/merge-logging-context!, cambium.mdc/with-raw-mdc http://logback.qos.ch/manual/mdc.html

Given context map data, merge it into the current MDC and evaluate the body of code in that context. Restore
original context in the end.
See: cambium.core/merge-logging-context!, cambium.mdc/with-raw-mdc
     http://logback.qos.ch/manual/mdc.html
sourceraw docstring

wrap-logging-contextclj

(wrap-logging-context context f)

Wrap function f with the specified logging context. See: cambium.core/with-logging-context, cambium.mdc/wrap-raw-mdc http://logback.qos.ch/manual/mdc.html

Wrap function f with the specified logging context.
See: cambium.core/with-logging-context, cambium.mdc/wrap-raw-mdc
     http://logback.qos.ch/manual/mdc.html
sourceraw docstring

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

× close