mirror of https://github.com/status-im/timbre.git
[#126] Fix broken appender examples in README
This commit is contained in:
parent
51f2813ce5
commit
e7f7b232a8
10
README.md
10
README.md
|
@ -208,7 +208,7 @@ lein uberjar # Compile jar ''
|
||||||
;; [com.taoensso/carmine "2.10.0"] ; Add to project.clj deps
|
;; [com.taoensso/carmine "2.10.0"] ; Add to project.clj deps
|
||||||
;; (:require [taoensso.timbre.appenders (carmine :as car-appender)]) ; Add to ns
|
;; (:require [taoensso.timbre.appenders (carmine :as car-appender)]) ; Add to ns
|
||||||
|
|
||||||
(timbre/merge-config! {:appenders {:carmine (car-appender/make-appender)}})
|
(timbre/merge-config! {:appenders {:carmine (car-appender/carmine-appender)}})
|
||||||
```
|
```
|
||||||
|
|
||||||
This gives us a high-performance Redis appender:
|
This gives us a high-performance Redis appender:
|
||||||
|
@ -226,11 +226,11 @@ A simple query utility is provided: `car-appender/query-entries`.
|
||||||
;; (:require [taoensso.timbre.appenders (postal :as postal-appender)]) ; Add to ns
|
;; (:require [taoensso.timbre.appenders (postal :as postal-appender)]) ; Add to ns
|
||||||
|
|
||||||
(timbre/merge-config!
|
(timbre/merge-config!
|
||||||
{:appenders {:postal
|
{:appenders
|
||||||
(postal-appender/make-appender {}
|
{:postal
|
||||||
{:postal-config
|
(postal-appender/postal-appender
|
||||||
^{:host "mail.isp.net" :user "jsmith" :pass "sekrat!!1"}
|
^{:host "mail.isp.net" :user "jsmith" :pass "sekrat!!1"}
|
||||||
{:from "me@draines.com" :to "foo@example.com"}})}})
|
{:from "me@draines.com" :to "foo@example.com"})}})
|
||||||
```
|
```
|
||||||
|
|
||||||
#### File appender
|
#### File appender
|
||||||
|
|
Loading…
Reference in New Issue