Liking cljdoc? Tell your friends :D

ont-app.graph-log.levels

Macros to condition logging on the operative log level

Macros to condition logging on the operative log level
raw docstring

apply-log-fn-at-levelcljmacro

(apply-log-fn-at-level default log-fn level entry-type & args)

Returns value of log-fn on entry-type and args as appropriate for level, else return default Where <log-fn> is log! or value-log!, to be called only if appropriate for level. <entry-type> is a keyword naming a type of entry <args> := [<p> <o>, ...] for log!, [[<p> <o>, ...] <value>] for log-value! These will only be evaluated if <level> is appropriate <level> is the level of logging for the log statement, this may be overridden by the level asserted for <entry-type> <default> should be the value of <log-fn> if it's log-value!, typically nil for log!

Returns value of  `log-fn` on `entry-type` and `args` as appropriate for `level`, else return `default`
Where
<log-fn> is log! or value-log!, to be called only if appropriate for level.
<entry-type> is a keyword naming a type of entry
<args> := [<p> <o>, ...] for log!, [[<p> <o>, ...] <value>] for log-value!
  These will only be evaluated if <level> is appropriate
<level> is the level of logging for the log statement, this may be overridden
  by the level asserted for <entry-type>
<default> should be the value of  <log-fn> if it's log-value!, typically nil
  for log!
sourceraw docstring

debugcljmacro

(debug entry-type & args)
source

errorcljmacro

(error entry-type & args)
source

fatalcljmacro

(fatal entry-type & args)
source

infocljmacro

(info entry-type & args)
source

tracecljmacro

(trace entry-type & args)
source

value-debugcljmacro

(value-debug entry-type & args)
source

value-errorcljmacro

(value-error entry-type & args)
source

value-fatalcljmacro

(value-fatal entry-type & args)
source

value-infocljmacro

(value-info entry-type & args)
source

value-tracecljmacro

(value-trace entry-type & args)
source

value-warncljmacro

(value-warn entry-type & args)
source

warncljmacro

(warn entry-type & args)
source

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

× close