Back

logstash-appender (clj)

(source)

function

(logstash-appender host port & [opts])
Returns a Logstash appender, which will send each event in JSON format to the logstash server at `host:port`. Additionally `opts` may be a map with `:pr-stracktrace` mapped to a function taking an exception, which should write the stacktrace of that exception to `*out`. Set `:flush?` to true to flush the writer after every event.

Examples