katip-kafka: Katip scribe to send logs to Kafka

[ bsd3, library, logging ] [ Propose Tags ] [ Report a vulnerability ]

Modules

  • Katip
    • Scribes
      • Katip.Scribes.Kafka

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 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
Reverse Dependencies 1 direct, 0 indirect [details]
Downloads 746 total (1 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs not available [build log]
All reported builds failed as of 2018-04-29 [all 3 reports]

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