Skip to main content

clojure.tools.logging

*

  • *force*

    Overrides the default rules for choosing between logging directly or via an agent. Defaults to nil. See log* for detai...

  • *logger-factory*

    An instance satisfying the clojure.tools.logging.impl/LoggerFactory protocol, which allows uniform access to an underl...

  • *logging-agent*

    The default agent used for performing logging when direct logging is disabled. See log* for details.

  • *tx-agent-levels*

    The set of levels that will require using an agent when logging from within a running transaction. Defaults to #{:info...

D

  • debug

    Debug level logging using print-style args. Use the 'logging.readable' namespace to avoid wrapping args in pr-str.

  • debugf

    Debug level logging using format. Use the 'logging.readable' namespace to avoid wrapping args in pr-str.

E

  • enabled?

    Returns true if the specific logging level is enabled. Use of this macro should only be necessary if one needs to exe...

  • error

    Error level logging using print-style args. Use the 'logging.readable' namespace to avoid wrapping args in pr-str.

  • errorf

    Error level logging using format. Use the 'logging.readable' namespace to avoid wrapping args in pr-str.

F

  • fatal

    Fatal level logging using print-style args. Use the 'logging.readable' namespace to avoid wrapping args in pr-str.

  • fatalf

    Fatal level logging using format. Use the 'logging.readable' namespace to avoid wrapping args in pr-str.

I

  • info

    Info level logging using print-style args. Use the 'logging.readable' namespace to avoid wrapping args in pr-str.

  • infof

    Info level logging using format. Use the 'logging.readable' namespace to avoid wrapping args in pr-str.

L

  • log

    Evaluates and logs a message only if the specified level is enabled. See log* for more details.

  • log*

    Attempts to log a message, either directly or via an agent; does not check if the level is enabled. For performance...

  • log-capture!

    Captures System.out and System.err, piping all writes of those streams to the log. If unspecified, levels default to...

  • log-stream

    Creates a PrintStream that will output to the log at the specified level.

  • log-uncapture!

    Restores System.out and System.err to their original values.

  • logf

    Logs a message using a format string and args. Can optionally take a throwable as its second arg. See level-specific m...

  • logp

    Logs a message using print style args. Can optionally take a throwable as its second arg. See level-specific macros, e...

S

  • spy

    Evaluates expr and may write the form and its result to the log. Returns the result of expr. Defaults to :debug log le...

  • spyf

    Evaluates expr and may write (format fmt result) to the log. Returns the result of expr. Defaults to :debug log level....

T

  • trace

    Trace level logging using print-style args. Use the 'logging.readable' namespace to avoid wrapping args in pr-str.

  • tracef

    Trace level logging using format. Use the 'logging.readable' namespace to avoid wrapping args in pr-str.

W

  • warn

    Warn level logging using print-style args. Use the 'logging.readable' namespace to avoid wrapping args in pr-str.

  • warnf

    Warn level logging using format. Use the 'logging.readable' namespace to avoid wrapping args in pr-str.

  • with-logs

    Evaluates exprs in a context in which *out* and *err* write to the log. The specified logger-ns value will be used to ...