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.
(emit dest text)
sends a line of text to the appropriate output
sends a line of text to the appropriate output
(set-enabled! enabled)
Sets whether or not this library is enabled
Sets whether or not this library is enabled
(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.
(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).
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close