taoensso.timbre.appenders.3rd-party.franzy

Franzy (Kafka) appender.
Requires Franzy (https://github.com/ymilky/franzy.

franzy-appender

(franzy-appender {:keys [topic entry-fn], :or {entry-fn default-entry-fn}, :as config})
Returns a Franzy (Kafka) appender:
(franzy-appender
  {:topic "test-topic"
   :kafka-config {:bootstrap.servers ["127.0.0.1:9093"]}})

make-producer

(make-producer {:keys [kafka-config key-serializer value-serializer], :or {key-serializer serializers/string-serializer, value-serializer serializers/edn-serializer}})
Normally need `:bootstrap.servers` in `kafka-config`.

naive-key-strategy

(naive-key-strategy _)