(debug & args)
Logs args with debug loglevel. Returns nil.
Logs args with debug loglevel. Returns nil.
(do-debug & args)
Evaluates all arguments and logs them with debug loglevel. Returns the value of the last argument.
Evaluates all arguments and logs them with debug loglevel. Returns the value of the last argument.
(do-info & args)
Evaluates all arguments and logs them with info loglevel. Returns the value of the last argument.
Evaluates all arguments and logs them with info loglevel. Returns the value of the last argument.
(enable-log-print!)
Set print-fn to console.log
Set *print-fn* to console.log
(group-end)
Ends grouped log. ClojureScript only.
Ends grouped log. ClojureScript only.
(info & args)
Logs args with info loglevel. Returns nil.
Logs args with info loglevel. Returns nil.
(level-enabled? level)
Checks if log level is enabled.
Checks if log level is enabled.
(trace & args)
Logs args with trace loglevel. Returns nil.
Logs args with trace loglevel. Returns nil.
(with-mdc context & body)
Adds an MDC map to any logging wrapped in the macro. Macro can be nested. Note that this won't work well across go blocks since execution switches between threads and doesn't pass through thead locals. (with-mdc {:key "value"} (log/info "yay"))
Adds an MDC map to any logging wrapped in the macro. Macro can be nested. Note that this won't work well across go blocks since execution switches between threads and doesn't pass through thead locals. (with-mdc {:key "value"} (log/info "yay"))
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close