简体   繁体   中英

See more logs in Heroku with Rails

I have read that in order to see more logs I needed to add the following lines in my production.rb file:

 config.logger = Logger.new(STDOUT)
 config.log_level = :info

If I do this, my application crash with the following message:

/app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.3/lib/rails/rack/log_tailer.rb:8:in `size': No such file or directory - log/production.log (Errno::ENOENT)

So... What can I do to see more logs? Like the ones I see in development?

Thanks

Maybe you should try to use Loggly Add-on instead? There is a free plan with one day retention.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM