Skip to content

Instantly share code, notes, and snippets.

@nilswx
Forked from abrkn/heroku-log-pino-pretty.sh
Last active April 23, 2020 10:24
Show Gist options
  • Save nilswx/1caad627ac13949c137f81f9ad369caf to your computer and use it in GitHub Desktop.
Save nilswx/1caad627ac13949c137f81f9ad369caf to your computer and use it in GitHub Desktop.
Print Heroku logs with pino-pretty (with timestamps, colorized)
heroku logs -a YOUR_APP_NAME -t | sed 's/[^{]*//' | npx pino-pretty --translateTime --colorize
heroku logs -a YOUR_APP_NAME -t | sed 's/[^{]*//' | npx pino-pretty -t -c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment