https://github.com/blocknotes/compact_log_formatter
A Compact Log Formatter for Rails
https://github.com/blocknotes/compact_log_formatter
rails ruby
Last synced: 10 months ago
JSON representation
A Compact Log Formatter for Rails
- Host: GitHub
- URL: https://github.com/blocknotes/compact_log_formatter
- Owner: blocknotes
- License: mit
- Created: 2020-09-26T08:05:06.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-09-29T11:12:02.000Z (over 5 years ago)
- Last Synced: 2024-04-25T02:25:58.724Z (almost 2 years ago)
- Topics: rails, ruby
- Language: Ruby
- Homepage:
- Size: 249 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# CompactLogFormatter [](https://badge.fury.io/rb/compact_log_formatter)
A Compact Log Formatter for Rails.
## Usage
- Add to `Gemfile` (and execute `bundle`):
```rb
gem 'compact_log_formatter'
```
- Add to `application.rb` or to `config/environments/some_env.rb`:
```rb
Rails.logger = Logger.new("log/#{Rails.env}.log")
Rails.logger.formatter = CompactLogFormatter::Formatter.new
```
## Screenshot

## Do you like it? Star it!
If you use this component just star it. A developer is more motivated to improve a project when there is some interest.
## Contributors
- [Mattia Roccoberton](https://blocknot.es/): author
## License
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).