I want to exec the sidekiq log file on my heroku environment but I cannot find anything in the documentation nor google helps me here. I am sure it has to be sth like exec sidekiq -L log/sidekiq.log
but that command fails on heroku.
How can I access my sidekiq log file on a heroku environment?
Asked
Active
Viewed 4,053 times
11

DonMB
- 2,550
- 3
- 28
- 59
2 Answers
14
The easiest way would be
heroku logs --tail --app app_name --dyno worker
This will only show worker logs.

javed.hussain
- 141
- 1
- 2
11
I grabbed the worker logger on heroku
heroku logs -t -a eventbaxx-production | grep worker.1
so I could see sidekiq activity.

DonMB
- 2,550
- 3
- 28
- 59
-
would it work if we use `ActiveJob` instead of sidekiq's `Worker`? – Masroor Nov 06 '20 at 10:30