Liking cljdoc? Tell your friends :D

zuko.logging

Simple logging facilities. If the log level is set to 0 at compile time, then there will be no impact on genereated code. Otherwise, the current binding of level will determine which logs will be emitted, and the current binding of output will determine where the log will be sent.

Simple logging facilities.
If the log level is set to 0 at compile time, then there will be no impact on genereated code.
Otherwise, the current binding of *level* will determine which logs will be emitted,
and the current binding of *output* will determine where the log will be sent.
raw docstring

*enabled*clj

source

clojurescript?clj

source

debugcljmacro

(debug & args)
source

errorcljmacro

(error & args)
source

fatalcljmacro

(fatal & args)
source

infocljmacro

(info & args)
source

log*clj/s

(log* log-output level cns & data)
source (clj)source (cljs)

logging-enabledclj

source

LogOutputclj/sprotocol

emitclj/s

(emit dest text)

sends a line of text to the appropriate output

sends a line of text to the appropriate output
source (clj)source (cljs)

nodefscljs

source

set-enabled!clj

(set-enabled! enabled)

Sets whether or not this library is enabled

Sets whether or not this library is enabled
sourceraw docstring

set-logging-level!clj/s

(set-logging-level! level)

Set the level of logging. This avoids needing to bind the logging level dynamically during compilation. The level may be numerical of by keyword.

Set the level of logging. This avoids needing to bind the logging level dynamically during compilation.
The level may be numerical of by keyword.
source (clj)source (cljs)raw docstring

set-output!clj/s

(set-output! output)

Sets the output. This avoids using a dynamic binding, if desired. valid outputs are: nil or "" - write to stdout (atom []) - accumulate log in a vector java.io.Writer - send to a writer (Clojure only).

Sets the output. This avoids using a dynamic binding, if desired.
valid outputs are:
nil or "" - write to stdout
(atom []) - accumulate log in a vector
java.io.Writer - send to a writer (Clojure only).
source (clj)source (cljs)raw docstring

tracecljmacro

(trace & args)
source

warncljmacro

(warn & args)
source

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

× close