Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

logifyer

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

logifyer

  • 0.1.0
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

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:

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"
}

FAQs

Package last updated on 17 Sep 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc