Our production logs are long and contain a lot more than just errors. I’d like a second log file with just the errors/exceptions in.
Is this possible?
We’re using rails 2.x
Thanks.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
For example, to log all ActiveRecord::Base errors in a file called log/exceptions.log
For controllers and view(because ActionView logger doesn’t have it’s own logger, so it depends on the ActionController logger):