From 423b1c575c2fb061e4d47ac4dd8573601b77a632 Mon Sep 17 00:00:00 2001 From: Peter Taoussanis Date: Wed, 27 Sep 2023 09:52:55 +0200 Subject: [PATCH] [new] Allow `refer-timbre` to work in Cljs --- src/taoensso/timbre.cljc | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/src/taoensso/timbre.cljc b/src/taoensso/timbre.cljc index 4ae36a9e..e3a3fa2c 100644 --- a/src/taoensso/timbre.cljc +++ b/src/taoensso/timbre.cljc @@ -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