We have a large Rails site live which runs with production level logging. Occasionally there is a problem where debug-level logs would help us track down a problem quickly, but we can’t restart one of the Rails servers to have logs put in debug mode for a single request (and don’t want to run in debug mode for long as the servers are heavily used).
For our purposes it would be nice to have just the log output for the single request we want to look at. Rails’ console and the app object to the rescue!