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 Sat Apr 28 06:55:09 UTC 2018
Distributions NixOS:0.0.1
Downloads 220 total (10 in the last 30 days)
Rating (no votes yet) [estimated by rule of succession]
Your Rating
  • λ
  • λ
  • λ
Status Hackage Matrix CI
Docs not available [build log]
All reported builds failed as of 2018-04-29 [all 3 reports]

Modules

  • Katip
    • Scribes
      • Katip.Scribes.Kafka

Downloads

Maintainer's Corner

For package maintainers and hackage trustees


Readme for katip-kafka-0.0.1

[back to package description]

How to use

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