Skip to content

chriscnc/typed-logging

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Typed-Logging

A Clojure library that provides core.typed annotations for the clojure.tools.logging library.

Usage

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.

Installation

typed-logging is available on Clojars

[chriscnc/typed-logging "0.5.0"]

License

Copyright © 2015 Chris Cornelison

Distributed under the Eclipse Public License either version 1.0 or (at your option) any later version.

About

core.typed annotations for the clojure.tools.logging library

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published