16 lines
367 B
Clojure
16 lines
367 B
Clojure
(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)))
|