In Heroku, you can set the log level using the LOG_LEVEL environment variable
$ heroku config:set LOG_LEVEL=DEBUG
Valid values include DEBUG, INFO, WARN, ERROR, and FATAL. Alternatively, you can set this value in your environment configuration:
config.log_level = :debug
If both parameters are set, then LOG_LEVEL will take precedence. You most likely want INFO in production.
See the pearl rails-stdout-logging
izumi source share