An open API service indexing awesome lists of open source software.

https://github.com/ccocchi/rails_custom_logging

Replace Rails' verbose logs with anything you like, from one-liner keys/values to even more verbose logging (it you think that's possible).
https://github.com/ccocchi/rails_custom_logging

Last synced: about 1 year ago
JSON representation

Replace Rails' verbose logs with anything you like, from one-liner keys/values to even more verbose logging (it you think that's possible).

Awesome Lists containing this project

README

          

# Rails Custom Logging

An oponionated yet fully customizable way to tranform your Rails logs into useful data.

Currently supported Ruby versions: 2.6, 2.7, 3.0.
Currently supported Rails versions: 6.0, 6.1, 7.0

## Installation

Add this line to your application's Gemfile:

```ruby
gem 'rails_custom_logging'
```

## Usage

Enable the gem in an initializer or in any environment config:

```ruby
# config/initializers/logging.rb

RailsCustomLogging.configure do |config|
config.enabled = Rails.env.production?
end
```

## Customization

TODO

## Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/ccocchi/rails_custom_logging. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/ccocchi/rails_custom_logging/blob/master/CODE_OF_CONDUCT.md).

## License

The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).

## Code of Conduct

Everyone interacting in the RailsCustomLogging project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/ccocchi/rails_custom_logging/blob/master/CODE_OF_CONDUCT.md).