feat: add lograge to improve logging (#5423)

- Add lograge gem to improve rails logging using `LOGRAGE_ENABLED` env variable
- When enabled Single line log for requests in JSON formatting
- Switch sidekiq also to use JSON formatting

Fixes: chatwoot/product#437
---------

Co-authored-by: Sojan Jose <sojan@pepalo.com>
This commit is contained in:
Vishnu Narayanan
2023-04-07 13:44:30 +05:30
committed by GitHub
parent a521762dd6
commit 71c5a1e1d4
6 changed files with 56 additions and 12 deletions

View File

@@ -76,5 +76,4 @@ Rails.application.configure do
Bullet.bullet_logger = true
Bullet.rails_logger = true
end
end