Liking cljdoc? Tell your friends :D

ont-app.graph-log.levels

clj

Macros to condition logging on the operative log level

Macros to condition logging on the operative log level
raw docstring

apply-log-fn-at-levelclj/smacro

(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

apply-std-logging-fn-at-levelclj/smacro

(apply-std-logging-fn-at-level val level & args)
source

debugclj/smacro

(debug entry-type & args)
source

errorclj/smacro

(error entry-type & args)
source

fatalclj/smacro

(fatal entry-type & args)
source

infoclj/smacro

(info entry-type & args)
source

traceclj/smacro

(trace entry-type & args)
source

value-debugclj/smacro

(value-debug entry-type val)
(value-debug entry-type extras val)
source

value-errorclj/smacro

(value-error entry-type val)
(value-error entry-type extras val)
source

value-fatalclj/smacro

(value-fatal entry-type val)
(value-fatal entry-type extras val)
source

value-infoclj/smacro

(value-info entry-type val)
(value-info entry-type extras val)
source

value-traceclj/smacro

(value-trace entry-type val)
(value-trace entry-type extras val)
source

value-warnclj/smacro

(value-warn entry-type val)
(value-warn entry-type extras val)
source

warnclj/smacro

(warn entry-type & args)
source

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

× close