clojure.tools.logging
*
Overrides the default rules for choosing between logging directly or via an agent. Defaults to nil. See log* for detai...
valueAn instance satisfying the clojure.tools.logging.impl/LoggerFactory protocol, which allows uniform access to an underl...
valueThe default agent used for performing logging when direct logging is disabled. See log* for details.
valueThe set of levels that will require using an agent when logging from within a running transaction. Defaults to #{:info...
value
D
Debug level logging using print-style args. Use the 'logging.readable' namespace to avoid wrapping args in pr-str.
macro([message & more] [throwable message & more])
Debug level logging using format. Use the 'logging.readable' namespace to avoid wrapping args in pr-str.
macro([fmt & fmt-args] [throwable fmt & fmt-args])
E
Returns true if the specific logging level is enabled. Use of this macro should only be necessary if one needs to exe...
macro([level] [level logger-ns])
Error level logging using print-style args. Use the 'logging.readable' namespace to avoid wrapping args in pr-str.
macro([message & more] [throwable message & more])
Error level logging using format. Use the 'logging.readable' namespace to avoid wrapping args in pr-str.
macro([fmt & fmt-args] [throwable fmt & fmt-args])
F
Fatal level logging using print-style args. Use the 'logging.readable' namespace to avoid wrapping args in pr-str.
macro([message & more] [throwable message & more])
Fatal level logging using format. Use the 'logging.readable' namespace to avoid wrapping args in pr-str.
macro([fmt & fmt-args] [throwable fmt & fmt-args])
I
Info level logging using print-style args. Use the 'logging.readable' namespace to avoid wrapping args in pr-str.
macro([message & more] [throwable message & more])
Info level logging using format. Use the 'logging.readable' namespace to avoid wrapping args in pr-str.
macro([fmt & fmt-args] [throwable fmt & fmt-args])
L
Evaluates and logs a message only if the specified level is enabled. See log* for more details.
macro([level message] [level throwable message] [logger-ns level throwable message] [logger-factory logger-ns level throwable message])
Attempts to log a message, either directly or via an agent; does not check if the level is enabled. For performance...
function([logger level throwable message])
Captures System.out and System.err, piping all writes of those streams to the log. If unspecified, levels default to...
function([logger-ns] [logger-ns out-level err-level])
Creates a PrintStream that will output to the log at the specified level.
function([level logger-ns])
Restores System.out and System.err to their original values.
function([])
Logs a message using a format string and args. Can optionally take a throwable as its second arg. See level-specific m...
macro([level fmt & fmt-args] [level throwable fmt & fmt-args])
Logs a message using print style args. Can optionally take a throwable as its second arg. See level-specific macros, e...
macro([level message & more] [level throwable message & more])
S
Evaluates expr and may write the form and its result to the log. Returns the result of expr. Defaults to :debug log le...
macro([expr] [level expr])
Evaluates expr and may write (format fmt result) to the log. Returns the result of expr. Defaults to :debug log level....
macro([fmt expr] [level fmt expr])
T
Trace level logging using print-style args. Use the 'logging.readable' namespace to avoid wrapping args in pr-str.
macro([message & more] [throwable message & more])
Trace level logging using format. Use the 'logging.readable' namespace to avoid wrapping args in pr-str.
macro([fmt & fmt-args] [throwable fmt & fmt-args])
W
Warn level logging using print-style args. Use the 'logging.readable' namespace to avoid wrapping args in pr-str.
macro([message & more] [throwable message & more])
Warn level logging using format. Use the 'logging.readable' namespace to avoid wrapping args in pr-str.
macro([fmt & fmt-args] [throwable fmt & fmt-args])
Evaluates exprs in a context in which *out* and *err* write to the log. The specified logger-ns value will be used to ...
macro([logger-ns & body] [[logger-ns out-level err-level] & body])