Liking cljdoc? Tell your friends :D

mokujin.log


current-contextclj

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

debugcljmacro

(debug msg)
(debug msg ctx)

Debug log, pass message or ctx+message

Debug log, pass message or ctx+message
raw docstring

debugfcljmacro

(debugf & args)

errorcljmacro

(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
raw docstring

errorfcljmacro

(errorf & args)

infocljmacro

(info msg)
(info msg ctx)

Log an info pass message or ctx+messag

Log an info pass message or ctx+messag
raw docstring

infofcljmacro

(infof & args)

logcljmacro

(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
raw docstring

logfcljmacro

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

mdc-putclj

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

tracecljmacro

(trace msg)
(trace msg ctx)

Trace log, pass message or ctx+message

Trace log, pass message or ctx+message
raw docstring

tracefcljmacro

(tracef & args)

warncljmacro

(warn msg)
(warn msg ctx)

Log a warning pass message or ctx+message

Log a warning pass message or ctx+message
raw docstring

warnfcljmacro

(warnf & args)

with-contextcljmacro

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

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

× close