Liking cljdoc? Tell your friends :D
All platforms.

assistant.log


logclj/smacro

(log & logs)

Logs only when assert is true. In CLJS, uses JS console for Dev Tools support.

Logs only when *assert* is true. In CLJS, uses JS console for Dev Tools support.
sourceraw docstring

log*clj/s

(log* & logs)

Cross-environment logging. JS requires console.log for Chrome Dev Tools assistance. On the Clojure side, see this tip for better printing in multithreaded scenarios:

http://yellerapp.com/posts/2014-12-11-14-race-condition-in-clojure-println.html

Explicitly joined newline character ensures printing from different threads doesn't upset the newlines. Calling flush explicitly assures a flush, while a newline character alone does not.

Cross-environment logging. JS requires console.log for Chrome Dev Tools assistance. On the Clojure side, see this tip for better printing in multithreaded scenarios:

http://yellerapp.com/posts/2014-12-11-14-race-condition-in-clojure-println.html

Explicitly joined newline character ensures printing from different threads doesn't upset the newlines. Calling flush explicitly assures a flush, while a newline character alone does not.
sourceraw docstring

logxclj/smacro

(logx & vs)

Log expressions when assert is true, each on a line, with the quoted expression followed by its evaluation.

Log expressions when *assert* is true, each on a line, with the quoted expression followed by its evaluation.
sourceraw docstring

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

× close