Common utilities for output and option sharing.
Common utilities for output and option sharing.
(colorize s color)
Wrap the string in ANSI escape sequences to render the named color.
Wrap the string in ANSI escape sequences to render the named color.
(log & messages)
Log a message which will only be printed when verbose output is enabled.
Log a message which will only be printed when verbose output is enabled.
(logf message & fmt-args)
Log a formatted message which will only be printed when verbose output is enabled.
Log a formatted message which will only be printed when verbose output is enabled.
(option k)
Return the value set for the given option, if any.
Return the value set for the given option, if any.
(print-cause-trace tr)
Like print-stack-trace but prints chained exceptions (causes).
Like print-stack-trace but prints chained exceptions (causes).
(print-stack-trace tr)
Prints a Clojure-oriented stack trace of tr, a Throwable. Prints a maximum of 100 stack frames. Does not print chained exceptions (causes).
Prints a Clojure-oriented stack trace of tr, a Throwable. Prints a maximum of 100 stack frames. Does not print chained exceptions (causes).
(print-throwable tr)
Prints the class and message of a Throwable.
Prints the class and message of a Throwable.
(print-trace-element e)
Prints a Clojure-oriented view of one element in a stack trace.
Prints a Clojure-oriented view of one element in a stack trace.
(printerr & messages)
Print a message to standard error.
Print a message to standard error.
(printerrf message & fmt-args)
Print a message to standard error with formatting.
Print a message to standard error with formatting.
(with-options opts & body)
Evaluate the expressions in body
with the print options bound to opts
.
Evaluate the expressions in `body` with the print options bound to `opts`.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close