[#130] README: add note re: how to turn off default Ansi colours (@kenrestivo)

This commit is contained in:
ken restivo 2015-09-28 00:08:41 -07:00 committed by Peter Taoussanis
parent 10690f5731
commit 1148440d61
1 changed files with 8 additions and 0 deletions

View File

@ -85,6 +85,14 @@ java.lang.Exception: On noes
Other utils include: `log-errors`, `log-and-rethrow-errors`, `logged-future`, and `handle-uncaught-jvm-exceptions!` (please see the [API docs][] for details).
#### Disabling colors
To turn off ANSI color escape codes (i.e. for log files or email), add to your config:
```clojure
:output-fn (partial timbre/default-output-fn {:stacktrace-fonts {}})
```
You can also do this on a per-appender basis by passing the above :output-fn to specific appenders.
### Configuration
This is the biggest win over Java logging IMO. Here's `timbre/example-config` (also Timbre's default config):