[#172] Allow disabling ANSI colours with env var (@ccfontes)

This commit is contained in:
Carlos Cunha 2016-06-16 16:25:54 +01:00 committed by Peter Taoussanis
parent 606562cdcd
commit 81e779b630
1 changed files with 3 additions and 1 deletions

View File

@ -112,7 +112,9 @@
#+clj :timestamp-opts #+clj :timestamp-opts
#+clj default-timestamp-opts ; {:pattern _ :locale _ :timezone _} #+clj default-timestamp-opts ; {:pattern _ :locale _ :timezone _}
:output-fn default-output-fn ; (fn [data]) -> string ; (fn [data]) -> string
:output-fn #(let [env (System/getenv "TIMBRE_NO_STACKTRACE_FONTS")]
(default-output-fn (if env {:stacktrace-fonts {}}) %))
:appenders :appenders
#+clj #+clj