Use `defonce` instead of `def` for config.

This commit is contained in:
Peter Taoussanis 2012-07-12 16:33:21 +07:00
parent f454ac9afb
commit 068d9bf248
1 changed files with 10 additions and 9 deletions

View File

@ -21,7 +21,8 @@
[& xs]
(print (str (str/join \space xs) \newline)))
(def config
(defonce config
^{:doc
"This map atom controls everything about the way Timbre operates. In
particular note the flexibility to add arbitrary appenders.
@ -32,7 +33,7 @@
:ap-config, :level, :error?, :instant, :timestamp, :ns, :message, :more,
:profiling-stats (when applicable)
See source code for examples."
See source code for examples."}
(atom {:current-level :debug
;;; Allow log filtering by namespace patterns (e.g. ["my-app.*"]).