plushu / plushu-logs

Display logs for an app
MIT License
0 stars 0 forks source link

Limiting number of lines (`-n`) #5

Open stuartpb opened 9 years ago

stuartpb commented 9 years ago

Per Heroku:

 -n, --num NUM        # the number of lines to display

Due to the way we model logs, this is best handled by throwing a tail at the end of the pipe, after sort. We could include the limit as a hint that we don't need any more lines to the end hooks (so they don't stream the entire file to us), but Bash & co. are good about handling firehoses like that, so for now we'll just leave it off. (We might add this as another parameter to the hook after we figure out filtering.)