where are my log files in heroku?
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.
Use this shell command to save your logs locally using heroku cli:
heroku logs -n number_of_lines --app application_name >> file_name.txt
>>
will append the command output to the file and saves it: file_name.txt
number_of_lines
is limited to a maximum of 1500 by heroku.
Sample command:
heroku logs -n 500 --app sample_app >> logs.txt
Thanks to the Anuja Joshi's answer