Project

kitlog

0.0
No commit activity in last 3 years
No release in over 3 years
Logger for Ruby that imitates go-kit logger
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 0.10
~> 3.8

Runtime

~> 1.8
 Project Readme

kitlog CircleCI

The smallest of logging libraries that imitates the go-kit logger interface. Super simple, just:

irb(main):001:0> require "kitlog"

irb(main):002:0> Kitlog.log(event: "hello, from a terminal")
event="hello, from a terminal" ts="2019-12-16T11:23:07.908104000Z" tid=70217581666320

irb(main):003:0> Kitlog.configure(format: :json)
irb(main):004:0> Kitlog.log(event: "hello, with json")
{"event":"hello, with json","ts":"2019-12-16T11:23:27.448655000Z","tid":70217581666320}

irb(main):005:0> logger = Kitlog.with(component: "app");
irb(main):006:0> logger.log(event: "ping")
{"component":"app","event":"ping","ts":"2019-12-16T11:23:46.460129000Z","tid":70217581666320}