How do I get Rails to display standard useful information in log statements?
问题 I'm new to Ruby/Rails programming and still finding my way. I have created a sample web app by following this tutorial. It's working fine. It's using Ruby version 1.9.3 with Rails version 4.0.8. However I would like to implement logging. So I inserted the following lineq into one of my controllers: logger.debug "Hello! I'm a DEBUG message" logger.info "Hello! I'm an INFO message" This produced the following logs: Hello! I'm a DEBUG message Hello! I'm an INFO message That's not too helpful. I