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).
- Host: GitHub
- URL: https://github.com/ccocchi/rails_custom_logging
- Owner: ccocchi
- License: mit
- Created: 2021-01-29T13:49:07.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2022-04-13T13:06:17.000Z (about 4 years ago)
- Last Synced: 2025-02-09T19:15:33.953Z (over 1 year ago)
- Language: Ruby
- Size: 20.5 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.txt
- Code of conduct: CODE_OF_CONDUCT.md
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).