(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