Skip to content

Commit

Permalink
[new] Allow refer-timbre to work in Cljs
Browse files Browse the repository at this point in the history
  • Loading branch information
ptaoussanis committed Sep 27, 2023
1 parent 207a398 commit 423b1c5
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions src/taoensso/timbre.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -973,17 +973,18 @@
;;;; Ns imports

#?(:clj
(defn refer-timbre
"Shorthand for:
(require '[taoensso.timbre :as timbre
:refer [log trace debug info warn error fatal report
logf tracef debugf infof warnf errorf fatalf reportf
spy]])"
(defmacro refer-timbre
"(require
'[taoensso.timbre :as timbre
:refer [log trace debug info warn error fatal report
logf tracef debugf infof warnf errorf fatalf reportf
spy]])"
[]
(require '[taoensso.timbre :as timbre
:refer [log trace debug info warn error fatal report
logf tracef debugf infof warnf errorf fatalf reportf
spy]])))
`(require
'[taoensso.timbre :as timbre
:refer [log trace debug info warn error fatal report
logf tracef debugf infof warnf errorf fatalf reportf
spy]])))

;;;; Appender shutdown

Expand Down

0 comments on commit 423b1c5

Please sign in to comment.