$heroku ps
Then view the log, replacing '123' with your number (--tail if you want more than just the last few lines).
$heroku logs --ps scheduler.123 --tail
You can pipe that to a file
$heroku logs --ps scheduler.123 --tail > log/scheduler.log
Or pipe and also view the output in your terminal window at the same time (note the vertical pipe character).
$heroku logs --ps scheduler.123 --tail | tee log/scheduler.log
No comments:
Post a Comment