Skip to content

Instantly share code, notes, and snippets.

@deque-blog
Last active June 4, 2017 16:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save deque-blog/bc110094e0dae484b0f629e895948405 to your computer and use it in GitHub Desktop.
Save deque-blog/bc110094e0dae484b0f629e895948405 to your computer and use it in GitHub Desktop.
(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