katip-kafka: Katip scribe to send logs to Kafka

[ bsd3, library, logging ] [ Propose Tags ]

[Skip to Readme]
Versions [faq] 0.0.1
Change log CHANGELOG.md
Dependencies aeson, base (>=4.7 && <5), bytestring, hw-kafka-client, katip [details]
License BSD-3-Clause
Copyright 2018 Aleksey Uimanov
Author Aleksey Uimanov
Maintainer s9gf4ult@gmail.com
Category Logging
Home page https://github.com/s9gf4ult/katip-kafka
Source repo head: git clone https://github.com/s9gf4ult/katip-kafka
Uploaded by AlekseyUymanov at 2018-04-28T06:55:09Z
Distributions NixOS:0.0.1
Downloads 529 total (3 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Hackage Matrix CI
Docs not available [build log]
All reported builds failed as of 2018-04-29 [all 3 reports]


  • Katip
    • Scribes
      • Katip.Scribes.Kafka


Maintainer's Corner

For package maintainers and hackage trustees

Readme for katip-kafka-0.0.1

[back to package description]

How to use

  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