# Logifyer ## Summary Logifyer converts Rails console logs into JSON format for structured and readable log output. ## Installation Add this line to your application's Gemfile: ```ruby gem 'logifyer' ``` And then execute: $ bundle install Or install it yourself as: $ gem install logifyer ## Usage #### Quick Start Add this code in your environment files depend on your need or application.rb file to affect the changes in all the environments ``` require 'logifyer' require 'logifyer/json_logifyer' logger = Logger.new(STDOUT) logger.level = Logger::DEBUG logger.formatter = Ruby::JSONFormatter::Base.new config.logger = logger logger.info 'Hello!, from logifyer' ``` result: ``` { "message": "Hello!, from logifyer", "log_level": "INFO", "application": aq, "log_timestamp": "2024-09-17T11:07:49.212+05:30" } ```