A Clojure library that provides core.typed annotations for the clojure.tools.logging library.
Simply require the annotations into the modules that do logging.
(ns example.logging
(:require [clojure.tools.logging :as log]
[typed-logging.annotations :refer :all]))
;; use the logging library as usual. The referred annotations
;; should satify the type-checker
All macros provided by the underlying slf4j-api via the clojure.toos.logging namespace are known to type-check. However, the clojure.tools.logging namespace provides other macros that extend this interface and are known not to type-check with these annotations. To use those less common macros, wrap their usage in tc-ignore.
typed-logging is available on Clojars
[chriscnc/typed-logging "0.5.0"]
Copyright © 2015 Chris Cornelison
Distributed under the Eclipse Public License either version 1.0 or (at your option) any later version.