user1899082
user1899082

Reputation:

Where does Rails show the logging output

In some method I am wrting something like this:

Rails.logger.debug("------I WAS HERE ------- ")

I can see that if I put a break point on the next line of that code, it is hitting that break point, using RubyMine IDE and running the server it from its Debug mode, so it has passed that logger.debug method but where did it print it? I can't find it in Console ... Is there an easier way?

Upvotes: 14

Views: 14546

Answers (1)

Dave S.
Dave S.

Reputation: 6429

Logs by default go to the #{Rails.root}/log/#{Rails.env}.log file. Most likely that's development.log in your case.

Upvotes: 22

Related Questions