0.0
No commit activity in last 3 years
No release in over 3 years
Making Rails Logging much more lucid 👊
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 2.0
~> 1.1, >= 1.1.1
~> 10.0
~> 3.0
~> 1.8, >= 1.8.0

Runtime

 Project Readme

Logging-Good

hereafter, Rails logger is your best friend 👬

Gem Version Build Status codecov codebeat badge

PRs Welcome Say Thanks!

Installation

gem 'logging_good'

And then execute:

$ bundle

Or install it yourself as:

$ gem install logging_good

How to use

IMPORTANT ! This gem is dependent on two other display formatting gems. Install it by adding below lines to your Gemfile

 gem "unicode-display_width", '~> 1.6'
 gem "terminal-table", '~> 1.8', '>= 1.8.0'

then run $ bundle install

So. After installing the above mentioned gems into your Gemfile, you are all set to explore this gem further...

Now, add this line into your controller action(s) to get started!

 Now.logging_good(params)

Other optional Arguments :

request
response.headers

example:

# In app/controllers/abcd_controller.rb

def index
  Now.logging_good(params, request)    
  ......
  ......
end

def create
   Now.logging_good(params)
  ......
  ......
end
  ......

That's Basically it. You are now able to see beautifully formatted data in your rails logs 🙌