An open API service indexing awesome lists of open source software.

https://github.com/typeable/katip-kafka

Kafka backend for Katip
https://github.com/typeable/katip-kafka

Last synced: about 2 months ago
JSON representation

Kafka backend for Katip

Awesome Lists containing this project

README

          

# How to use

``` haskell
let
toRecord = simpleRecord "myapp.logs" UnassignedPartition
props = brokersList [ BrokerAddress "kafka" ] <> compression Lz4
kafka <- kafkaScribe toRecord props DebugS V3 >>= either throwIO return
env <- initLogEnv "myapp" (Environment "devel") >>=
registerScribe "kafka" kafka defaultScribeSettings
finally (runMyApp env) $ closeScribes env
```