29.4.1 Logging with Papertrail

Heroku, by default, will store logs about our service, as shown in Example 29.47.

Example 29.47: Shell Code

$ heroku logs --tail

The feature comes with basic filtering, allowing us to see output from Heroku itself or just our app, as shown in Example 29.48.

Example 29.48: Shell Code

$ heroku logs --tail --source heroku $ heroku logs --tail --source app

Heroku’s log feature is limited to 1,500 messages, and according to Heroku’s documentation, it is built more for routing messages and less for storage. We therefore add a service for storing our logs long term. There are three companies on Heroku’s platform: FlyData, Papertrail, and Logentries. I opt to use Papertrail, but the competing ...

Get Django Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.