Merge pull request #102 from whodidthis/whodidthis-readme-patch-1

Fix spit-appender example (@whodidthis)
This commit is contained in:
Peter Taoussanis 2015-06-11 10:39:04 +07:00
commit eb3b9d5d6f
1 changed files with 3 additions and 1 deletions

View File

@ -226,8 +226,10 @@ A simple query utility is provided: `car-appender/query-entries`.
#### File appender
```clojure
;; (:require [taoensso.timbre.appenders.core :as appenders]) ; Add to ns
(timbre/merge-config!
{:appenders {:spit {:enabled? true :opts {:spit-finame "/path/my-file.log"}}}})
{:appenders {:spit (appenders/spit-appender {:fname "/path/my-file.log"})}})
```
#### Other included appenders