Liking cljdoc? Tell your friends :D

toucan2.log

Toucan 2 logging utilities. This is basically just a fancy wrapper around clojure.tools.logging that supports some additional debugging facilities, such as dynamically enabling logging for different topics or levels from the REPL.

Toucan 2 logging utilities. This is basically just a fancy wrapper around `clojure.tools.logging` that supports some
additional debugging facilities, such as dynamically enabling logging for different topics or levels from the REPL.
raw docstring

*level*clj

The current log level (as a keyword) to log messages directly to stdout with. By default this is nil, which means don't log any messages to stdout regardless of their level. (They are still logged via clojure.tools.logging.)

You can dynamically bind this to enable logging at a higher level in the REPL for debugging purposes. You can also set a default value for this by setting the atom level.

The current log level (as a keyword) to log messages directly to stdout with. By default this is `nil`, which means
don't log any messages to stdout regardless of their level. (They are still logged via `clojure.tools.logging`.)

You can dynamically bind this to enable logging at a higher level in the REPL for debugging purposes. You can also set
a default value for this by setting the atom [[level]].
sourceraw docstring

debugfcljmacro

(debugf throwable? s)
(debugf throwable? format-string & args)

Most log messages should be this level.

Most log messages should be this level.
sourceraw docstring

errorfcljmacro

(errorf throwable? s)
(errorf throwable? format-string & args)

Log an error message for a topic. Optionally include a throwable. Only things that are actually serious errors should be logged at this level.

Log an error message for a `topic`. Optionally include a `throwable`. Only things that are actually serious errors
should be logged at this level.
sourceraw docstring

infofcljmacro

(infof throwable? s)
(infof throwable? format-string & args)

Only things that all users should see by default without configuring a logger should be this level.

Only things that all users should see by default without configuring a logger should be this level.
sourceraw docstring

levelclj

The default log level to log messages directly to stdout with. Takes the value of the env var TOUCAN_DEBUG_LEVEL, if set. Can be overridden with *level*. This is stored as an atom, so you can swap! or reset! it.

The default log level to log messages directly to stdout with. Takes the value of the env var
`TOUCAN_DEBUG_LEVEL`, if set. Can be overridden with [[*level*]]. This is stored as an atom, so you can `swap!` or
`reset!` it.
sourceraw docstring

tracefcljmacro

(tracef throwable? s)
(tracef throwable? format-string & args)

Log messages that are done once-per-row should be this level.

Log messages that are done once-per-row should be this level.
sourceraw docstring

warnfcljmacro

(warnf throwable? s)
(warnf throwable? format-string & args)

Log a warning for a topic. Optionally include a throwable. Bad things that can be worked around should be logged at this level.

Log a warning for a `topic`. Optionally include a `throwable`. Bad things that can be worked around should be logged at
this level.
sourceraw docstring

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

× close