I would like to study my production.log in detail, but the hero doesn't seem to store them. Does anyone else have a solution to this problem. It would be nice if it were safely preserved. thanks in advance:)
From the Heroku doc, you can see that their logger is limited to the last 100 lines whenever you read them from the console.
If you have a requirement to store and analyze all your production logs, it looks like you will have to consider archiving them with Heroku, say, on S3 or through the EC2 log server.
Heroku , 1500 . heroku logs 100 .
heroku logs
heroku logs -n 1500
, Heroku Logplex, , Heroku. ,
heroku logs -n 1500 --source app
This will work in heroku, do this from your terminal:
heroku logs -n 200
or
heroku logs -t --app <app_name> > any_file_name
Here the max limit -nis 1500
-n
Source: https://habr.com/ru/post/1754572/More articles:How to find the difference between 2 files in a shell script - bashHow to set log4net log in file if it could not write to the database? - c #disable and select asp.net mvc Html.RadioButtonFor - .netКак создать ветку из тега SVN с Maven? - branchC #: AsyncCallback not called on Socket.BeginReceive - c #How to show files that were merged without fast forward in Git? - gitDatabase source code versus schema change scripts - version-controlC # string Trim not working, strange problem - stringTransfer changes from Dev DB to production database - version-controlПреобразование double to decimal - decimalAll Articles