Improve README

This commit is contained in:
Emlyn Corrin 2013-06-06 12:40:50 +01:00
parent e7bf5015e9
commit 9741aaa92d
1 changed files with 10 additions and 3 deletions

View File

@ -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})
``` ```