(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.
(debug msg)
(debug mdc msg)
(debug mdc throwable msg)
Similar to clojure.tools.logging/debug.
Similar to clojure.tools.logging/debug.
(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.
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.
(error msg)
(error mdc msg)
(error mdc throwable msg)
Similar to clojure.tools.logging/error.
Similar to clojure.tools.logging/error.
(fatal msg)
(fatal mdc msg)
(fatal mdc throwable msg)
Similar to clojure.tools.logging/fatal.
Similar to clojure.tools.logging/fatal.
(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.
(info msg)
(info mdc msg)
(info mdc throwable msg)
Similar to clojure.tools.logging/info.
Similar to clojure.tools.logging/info.
(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.
(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:
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!')
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.
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.
(trace msg)
(trace mdc msg)
(trace mdc throwable msg)
Similar to clojure.tools.logging/trace.
Similar to clojure.tools.logging/trace.
(warn msg)
(warn mdc msg)
(warn mdc throwable msg)
Similar to clojure.tools.logging/warn.
Similar to clojure.tools.logging/warn.
(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
(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
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close