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
- Host: GitHub
- URL: https://github.com/typeable/katip-kafka
- Owner: typeable
- License: bsd-3-clause
- Created: 2018-03-01T10:07:57.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-04-28T06:54:41.000Z (over 7 years ago)
- Last Synced: 2025-12-08T05:58:24.508Z (about 2 months ago)
- Language: Haskell
- Size: 3.91 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
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
```