Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

where are my log files in heroku?

Tags:

logging

heroku

I have logging configured going to console and a log file. In heroku world, does it even make sense to log to a file? Is there any way I can retrive the log file?

like image 255
Bobo Avatar asked Feb 10 '12 19:02

Bobo


People also ask

Where can I find heroku logs?

You can view logs with the Heroku CLI, the dashboard, your logging add-on, or in your log drain.

How do I find application logs?

On a Windows computer: Inside the Control Panel, find System & Security. From there, go to Administrative Tools and then the Event Viewer. Open Windows Logs and choose Application. This will show you all the application logs saved on your computer.

How can I see heroku errors?

Simply use heroku logs to display the last 100 lines of your logs. Heroku only saves the last 1500 lines of logs, which you can access using heroku logs -n 1500 . If you want more logging, check out Heroku add-ons like Logentries or Papertrail.


1 Answers

Logs are streams, not files.

To access the logging stream, you simply heroku logs and you'll see the full stream. Anything you output with your applications logger will go here.

You do not have log files.

Should you wish to capture files to frame and put on your wall, sign up for a service such as Papertrail and use the syslog drains to get your Heroku logs into there. From there they can dump to S3.

like image 69
Neil Middleton Avatar answered Sep 20 '22 17:09

Neil Middleton