revamped logging!
This commit is contained in:
15
src/clj/auto_ap/logging.clj
Normal file
15
src/clj/auto_ap/logging.clj
Normal file
@@ -0,0 +1,15 @@
|
||||
(ns auto-ap.logging
|
||||
(:require [clojure.tools.logging :as log]
|
||||
[unilog.context :as lc]))
|
||||
(defn info-event [message context]
|
||||
(lc/with-context context
|
||||
(log/info message)))
|
||||
|
||||
(defn warn-event [message context]
|
||||
(lc/with-context context
|
||||
(log/warn message)))
|
||||
|
||||
|
||||
(defn error-event [message context]
|
||||
(lc/with-context context
|
||||
(log/warn message)))
|
||||
Reference in New Issue
Block a user