lograge icon indicating copy to clipboard operation
lograge copied to clipboard

An attempt to tame Rails' default policy to log everything.

Results 72 lograge issues
Sort by recently updated
recently updated
newest added

I fail to call `Rails.logger.silence` in `production` environment. Does your Logger includes somewhere `ActiveSupport::LoggerSilence` module ? It throws: ``` NoMethodError: undefined method `silence' for # ``` I took a look...

I am using `Rails.logger.error "some error"` in my controller's action. I can see the resulting JSON-formatted log in `development.log` but it completely bypassed the `custom_options` code where I add in...

My message looks like this: ``` [2020-06-08 14:43:08 +0000] - method=GET request_uri=/ status=200 request_id=0b78baef-5e75-4c79-832e-ce075c533571 request_time=0.0 ``` But I would like to have my message to contain the log level. ```...

I've configured lograge in my controllers to bubble up info from my controllers and log them as custom options, but I can't figure out how to write an automated test...

Hi, I have a Rails 5 app configured like the following `config/environments/production.rb`: ```ruby Rails.application.configure do config.lograge.formatter = Lograge::Formatters::Logstash.new config.log_tags = [:request_id] end ``` This is a sample message that I...

I wan to format the log based on a type parameter sent in the logger.info message. For example: `Rails.logger.info({type: 'test_log'})`, used something similar in a non-lograge setup. I have build...

Hi, I am trying following from the Readme to have exception backtrace: ```ruby YourApp::Application.configure do config.lograge.enabled = true config.lograge.custom_options = lambda do |event| { exception: event.payload[:exception], # ["ExceptionClass", "the message"]...

### Context Hi, I have a project using https://github.com/binarylogic/authlogic and I had trouble to get it running in production, because of a railties setup problem: `ActionController` was required before the...

Hello, Any ideas why AR SQLs are not showing in `logs/test.log`? I've got: **Gemfile** ``` gem 'lograge' gem 'lograge-sql' ``` **config/environments/test.rb** ``` require 'lograge/sql/extension' Rails.application.configure do config.log_level = :debug config.lograge.enabled...

I had set lograge.rb file in redmine and i used lograge github page. ``` Rails.application.configure do config.lograge.enabled = true config.lograge.formatter = Lograge::Formatters::KeyValue.new end ``` also i have configured GELF UDP...