Shorten Turborepo Logs using --output-logs

Share this video with your friends

Social Share Links

Send Tweet
Published 2 years ago
Updated 2 years ago

The logs produced by Turborepo can get really really long. Turborepo give us a flag, --output-logs and if we add on the argument new-only, it shortens the logs to just the new information for the repositories that have changed.

Instructor: [0:00] The logs produced by Turborepo could get really, really long. Let's scroll up, and this is way too difficult to read, especially when you have more than three projects. You can fix that by using the --output-logs flag and passing the new-only value. As you can see here, it says cache hit, and then suppressing output, suppressing output, suppressing output. [0:25] Let's update the index.tsx file in our Next.js application. Let's delete this. Now, let's run build with the --output-logs flag set to new-only. As you can see, the output is way shorter. We omit all the output for utils, all the output for dashboard. We only log the output for blog, because that is the project that changed, and Turborepo doesn't know anything about it.

[0:53] If we were to run this again, Turborepo will show us the short version of those three logs.

[1:01] To recap, you can reduce the length of your logs by adding the --output-logs flag, and set its value to new-only.

~ 19 minutes ago

Member comments are a way for members to communicate, interact, and ask questions about a lesson.

The instructor or someone from the community might respond to your question Here are a few basic guidelines to commenting on

Be on-Topic

Comments are for discussing a lesson. If you're having a general issue with the website functionality, please contact us at

Avoid meta-discussion

  • This was great!
  • This was horrible!
  • I didn't like this because it didn't match my skill level.
  • +1 It will likely be deleted as spam.

Code Problems?

Should be accompanied by code! Codesandbox or Stackblitz provide a way to share code and discuss it in context

Details and Context

Vague question? Vague answer. Any details and context you can provide will lure more interesting answers!

Markdown supported.
Become a member to join the discussionEnroll Today