mirror of https://github.com/status-im/timbre.git
Improve README
This commit is contained in:
parent
e7bf5015e9
commit
9741aaa92d
|
@ -156,13 +156,20 @@ Filter logging output by namespaces:
|
||||||
|
|
||||||
#### Socket ([server-socket](https://github.com/technomancy/server-socket)) appender
|
#### Socket ([server-socket](https://github.com/technomancy/server-socket)) appender
|
||||||
|
|
||||||
|
Listens on the specified interface (use :all for all interfaces, defaults to localhost if unspecified) and port. Connect with either of:
|
||||||
|
|
||||||
|
```
|
||||||
|
telnet localhost 9000
|
||||||
|
netcat localhost 9000
|
||||||
|
```
|
||||||
|
|
||||||
```clojure
|
```clojure
|
||||||
;; [server-socket "1.0.0"] ; Add to project.clj dependencies
|
;; [server-socket "1.0.0"] ; Add to project.clj dependencies
|
||||||
;; (:require [taoensso.timbre.appenders (socket :as socket-appender)]) ; Add to ns
|
;; (:require [taoensso.timbre.appenders (socket :as socket-appender)]) ; Add to ns
|
||||||
|
|
||||||
(timbre/set-config! [:appenders :socket] socket-appender/socket-appender)
|
(timbre/set-config! [:appenders :socket] socket-appender/socket-appender)
|
||||||
(timbre/set-config! [:shared-appender-config :socket]
|
(timbre/set-config! [:shared-appender-config :socket]
|
||||||
{:list-addr "127.0.0.1"
|
{:listen-addr :all
|
||||||
:port 9000})
|
:port 9000})
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue