• Libraries

  • Home

  • aero
  • async-flow-fx
  • bidi
  • blossom
  • buddy-core
  • buddy-sign
  • camel-snake-kebab
  • chime
  • clj-kondo
  • clojure
  • clojure.data.json
  • closeable-map
  • config
  • core.async
  • crypto-password
  • cuerdas
  • data.xml
  • devcards
  • digest
  • etaoin
  • fs
  • hiccup
  • hikari-cp
  • honeysql
  • http-fx
  • humanize
  • image-resizer
  • integrant
  • loom
  • migratus
  • next-jdbc
  • openai-clojure
  • postal
  • process
  • reitit-parent
  • ring
  • selmer
  • shadow-cljs-tailwind-jit
  • testcontainers-clj
  • tick
  • timbre
  • tools.cli
  • websocket-client

Library released under Flexiana license. Copyright 2024 Flexiana.

Visit Flexiana website

Public Vars

  • *config* (clj)
  • *context* (clj)
  • ansi-color (clj)
  • color-str (clj)
  • console-appender (cljs)
  • debug (clj)
  • debugf (clj)
  • default-config (clj)
  • default-output-error-fn (clj)
  • default-output-fn (clj)
  • default-output-msg-fn (clj)
  • default-timestamp-opts (clj)
  • error (clj)
  • errorf (clj)
  • fatal (clj)
  • fatalf (clj)
  • get-hostname (clj)
  • handle-uncaught-jvm-exceptions! (clj)
  • info (clj)
  • infof (clj)
  • level>= (clj)
  • log (clj)
  • log! (clj)
  • log* (clj)
  • log-and-rethrow-errors (clj)
  • log-errors (clj)
  • logf (clj)
  • logf* (clj)
  • logged-future (clj)
  • merge-config! (clj)
  • println-appender (cljs)
  • refer-timbre (clj)
  • report (clj)
  • reportf (clj)
  • set-config! (clj)
  • set-min-level (clj)
  • set-min-level! (clj)
  • set-ns-min-level (clj)
  • set-ns-min-level! (clj)
  • shutdown-appenders! (clj)
  • sometimes (clj)
  • spy (clj)
  • swap-config! (clj)
  • trace (clj)
  • tracef (clj)
  • warn (clj)
  • warnf (clj)
  • with-config (clj)
  • with-context (clj)
  • with-context+ (clj)
  • with-default-outs (clj)
  • with-merged-config (clj)
  • with-min-level (clj)
Back

spy (clj)

(source)

macro

(spy form) (spy level form) (spy level name form) (spy config level name form)
Evaluates named form and logs its result. Always returns the result. Defaults to `:debug` logging level, and unevaluated form as name: (spy (+ 3 2)) => (timbre/debug '(+ 3 2) "=>" 5)

Examples