Back

fatal (clj)

(source)

macro

(fatal & args)

Examples

vlaaad/reveal
(ns e07-timbre-tap-appender
  (:require [taoensso.timbre :as log]
            [vlaaad.reveal :as r]))

(log/merge-config!
  {:appenders
   {:println {:enabled? false}
    :reveal {:enabled? true
             :fn (fn [data]
                   (tap> (r/submit
                           (r/as data
                                 (r/raw-string
                                   (format "[%1$tH:%1$tM:%1$tS.%1$tL %2$s:%3$s]: %4$s"
                                           (:instant data)
                                           (:?ns-str data)
                                           (:?line data)
                                           @(:msg_ data))
                                   {:fill ({:info :symbol
                                            :report :symbol
                                            :warn "#db8618"
                                            :error :error
                                            :fatal :error}
                                           (:level data)
                                           :util)})))))}}})
slagyr/joodo
(ns joodo.spec-helper
  (:require [taoensso.timbre :as timbre]))

(timbre/set-level! :fatal)
fmind/euphony
(ns euphony.utils.log
  (:require [taoensso.timbre :as log]))

(def LEVELS #{:debug :info :warn :error :fatal})
posobin/ampie
(ns ampie.logging
  (:require [taoensso.timbre :as log]))

(def devtools-level-to-fn
  {:fatal js/console.error,
   :error js/console.error,
   :warn  js/console.warn,
   :info  js/console.info,
   :debug js/console.debug,
   :trace js/console.trace})
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 fatal
  [context-src & args]
  `(with-a-frame-log-context ~context-src
     (timbre/log! :fatal  :p ~args ~{:?line (@#'timbre/fline &form)})))

(defmacro fatalf
  [context-src & args]
  `(with-a-frame-log-context ~context-src
     (timbre/log! :fatal  :f ~args ~{:?line (@#'timbre/fline &form)})))