Back
errorf (clj)
(source)macro
(errorf & args)
Examples
braidchat/braid
(ns braid.base.client.remote-handlers
(:require
[braid.core.hooks :as hooks]
[braid.base.client.socket :as socket]
[taoensso.timbre :as timbre :refer-macros [errorf]]))
(defmethod socket/event-handler :default
[[id data]]
(if-let [handler (@incoming-socket-message-handlers id)]
(handler id data)
(errorf "No socket message handler for id: %s" id)))
yapsterapp/a-frame
(ns a-frame.log
"overrides of the timbre logging macros
which set a context from an a-frame
interceptor-context key, or app-ctx key"
#?(:cljs (:require-macros [a-frame.log]))
(:require
[taoensso.timbre :as timbre]
[a-frame.schema :as af.schema]))
(defmacro errorf
[context-src & args]
`(with-a-frame-log-context ~context-src
(timbre/log! :error :f ~args ~{:?line (@#'timbre/fline &form)})))