Last active
June 4, 2017 16:51
-
-
Save deque-blog/bc110094e0dae484b0f629e895948405 to your computer and use it in GitHub Desktop.
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
(def ^:const trace-config-file-path | |
"./src/clj/algorithms_clj/macro_initiation_resource.edn") | |
(defn logger-enabled? [] | |
(-> | |
(slurp trace-config-file-path) ; read the resource file (slurp) | |
(read-string) ; parse its content | |
:log :enabled? ; extract the value of :enabled? under :log | |
)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment