Add `spy` alias

This commit is contained in:
Peter Taoussanis 2013-02-03 00:07:20 +07:00
parent bbbaf036b5
commit 210fe39b37
1 changed files with 4 additions and 0 deletions

View File

@ -324,6 +324,10 @@
(log ~level '~expr (str "\n" (stacktrace/pst-str e#)))
(throw e#)))))
(defmacro s ; Alias
{:arglists '([expr] [level expr] [level name expr])}
[& args] `(spy ~@args))
(defmacro ^:private def-logger
[level]
(let [level-name (name level)]