Skip to content

Adding heroku logs --follow/-f as an alias to heroku logs --tail/-f #1912

@chancancode

Description

@chancancode

Do you want to request a feature or report a bug?

Feature!

What is the current behavior?

  • heroku logs --tail/-t is used to stream the latest logs, while heroku logs --follow/-f is not recognized

What is the expected behavior?

  • heroku logs --follow/-f can be used to stream the latest logs

Background

Sorry for being so pedantic 🥲 This keeps tripping me up so I thought I would open an issue, seems more productive than complaining on Twitter!

I think calling this mode --tail is a bit of a misnomer. While it is commonly accepted to call this operation "tailing the logs", the tail command itself only shows the last N lines of a file and has little to do with this "live streaming of logs". It's really the --follow flag in tail that enables this mode, so it seems more appropriate to call it the "follow mode" instead of the "tail mode".

Because the --follow/-f flag is what you normally passes to the tail command when trying to do this, I almost always end up typing heroku logs -f which doesn't work. Since the flag isn't otherwise taken, would it be possible to add that as an additional alias?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions