Responsive Ad Area

Share This Post

test

Showing and alerting logged errors from Rails app on Google App Engine / Stackdriver

My Rails app is running in Google App Engine and I have the stackdriver (0.15.3) gem loaded.

In my Rails app, I call Rails.logger.error "some message" when there is a serious issue I need to know about.

This error appears in Stackdriver logs, categorised as an error.

But only when I’m displaying “Any log level”. If I set it to only show ‘Warns’ and greater, it shows nothing.

Also, the log seems to be a child of the original GET request, and when the original GET request is hidden, so is the child error. Is there a way to show all errors when filtering is set to show errors?

Secondly, I’m using Google “Error Reporting” to send me alerts. It seems to only pick up Exceptions, and not any errors that are logged via Rails.logger.error. Is there a way to include these logged errors?


Showing and alerting logged errors from Rails app on Google App Engine / Stackdriver
Showing and alerting logged errors from Rails app on Google App Engine / Stackdriver
test
{$excerpt:n}

Share This Post

Leave a Reply

Your email address will not be Publishedd. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

Skip to toolbar