(current-context)
Returns the current context map, useful if you want to pass it to another process to continue logging with the same context. Note that due to how MDC works, this will only return the context map for the current thread and map keys will be strings, not keywords.
Returns the current context map, useful if you want to pass it to another process to continue logging with the same context. Note that due to how MDC works, this will only return the context map for the current thread and map keys will be strings, not keywords.
(debug msg)
(debug msg ctx)
Debug log, pass message or ctx+message
Debug log, pass message or ctx+message
(debugf & args)
(error msg)
(error exc msg)
(error exc msg ctx)
Log an error message. [msg] [exc msg] [ctx exc msg] Context map can only be provided when passing exception AND message, otherwise, wrap your call in with-context
Log an error message. [msg] [exc msg] [ctx exc msg] Context map can only be provided when passing exception AND message, otherwise, wrap your call in with-context
(errorf & args)
(info msg)
(info msg ctx)
Log an info pass message or ctx+messag
Log an info pass message or ctx+messag
(infof & args)
(log level msg)
(log level msg context?)
Log wrapper which is helpful if you need to programatically control the log level
Log wrapper which is helpful if you need to programatically control the log level
(logf level msg & args)
Log wrapper which is helpful if you need to programatically control the log level.
Log wrapper which is helpful if you need to programatically control the log level.
(mdc-put ctx)
Take a context map and put it into the MDC. Keys and values will be stringified.
Take a context map and put it into the MDC. Keys and values will be stringified.
(trace msg)
(trace msg ctx)
Trace log, pass message or ctx+message
Trace log, pass message or ctx+message
(tracef & args)
(warn msg)
(warn msg ctx)
Log a warning pass message or ctx+message
Log a warning pass message or ctx+message
(warnf & args)
(with-context ctx & body)
Set context map for the form. Ideally, the context map should use unqualified keywords or strings for keys. Values will be stringified.
Set context map for the form. Ideally, the context map should use unqualified keywords or strings for keys. Values will be stringified.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close