2

I have a rails app on Heroku that is not logging at the application level.

Current versions:

  • ruby 1.9.3
  • rails 3.1.3

In the config/environment/production.rb there are the following lines:

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

What am I missing? What else should I look for?

John Forbes
  • 145
  • 3
  • 8
  • are you using the "heroku logs -t" command from a CLI ? – overlox Apr 03 '13 at 22:25
  • 1
    heroku logs with or without -t returns all log entries. My only app[web.1] entries are the starting for the starting of the Thin web server. No other application logging is present. It's my understanding from the Heroku docs that config.logger = Logger.new(STDOUT) enables the application logging, but it's not. – John Forbes Apr 04 '13 at 02:17

1 Answers1

1

How about "heroku logs --source app" ? full details here : https://devcenter.heroku.com/articles/logging#types-of-logs

overlox
  • 794
  • 1
  • 5
  • 18
  • 1
    "heroku logs --source app" returns nothing. I can only conclude that application log entries are not captured and routed by Heroku's Logplex. – John Forbes Apr 04 '13 at 02:20
  • you should try this : http://stackoverflow.com/questions/8098429/heroku-logging-not-working – overlox Apr 05 '13 at 12:35