To have the rails log output to the console you can add this to your ~/.irbrc
file:
1 2 3 4 5 6 7 8 9 |
|
This only enables the log on the machine you’re currently on. If you want to enable logging to the console as a project
wide feature so that anyone who checks out the project and runs the console also gets logging, then you can put this in
your environment.rb
file (or an environment config file like development.rb
):
1 2 3 |
|