Sha256: b7a5be933778a30c9eeeee64409ef781833067023ca2b628dc65ffef1a290ba9

Contents?: true

Size: 848 Bytes

Versions: 1

Compression:

Stored size: 848 Bytes

Contents

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
logifyer-0.1.0 README.md