mirror of https://github.com/status-im/timbre.git
Update spit-appender example
I think this is the new way of using it
This commit is contained in:
parent
66df24e8cc
commit
bd3894c583
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue