Created
May 1, 2015 20:08
-
-
Save arohner/70596d1ca051a94de83d to your computer and use it in GitHub Desktop.
annotating tools.logging
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(ns foo.bar | |
(:require [clojure.tools.logging.impl] | |
[clojure.core.typed :as t :refer (ann)]) | |
(:import (clojure.tools.logging.impl LoggerFactory Logger) | |
(clojure.lang Namespace | |
Symbol))) | |
(ann ^:no-check clojure.tools.logging/*logger-factory* LoggerFactory) | |
(ann ^:no-check clojure.tools.logging.impl/get-logger (t/Fn [LoggerFactory (t/U clojure.lang.Symbol Namespace) -> clojure.tools.logging.impl.Logger])) | |
(ann ^:no-check clojure.tools.logging.impl/enabled? (t/Fn [Logger t/Keyword -> Boolean])) | |
(ann ^:no-check clojure.tools.logging/log* (t/Fn [Logger t/Keyword (t/U Throwable nil) String -> nil])) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment