Parallel File Output for Task Logs #11368
anatoly314
started this conversation in
Ideas
Replies: 1 comment
|
Appreciate you taking the time to create a complete proposal! Non-persistent tasks are already written to disk in the It's likely that there will be some Additionally, as far as the other TUI gripes mentioned go, I'll consider those separate but related to the problem of fetching logs. Some are simply usability issues that need shoring up. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Goals
Non-goals
Background
TUI Usability Limitations
The TUI mode introduced in Turborepo 2.0, while visually appealing, has significant usability issues:
See also: #10491 "TUI is really hard to use"
Current workaround: Users must switch to
--ui=stream, losing the organized task view entirely.No Runtime Log Persistence for Dev Tasks
For persistent/dev tasks (
cache: false), Turborepo does not write logs to files. This creates problems for:Current workaround:
pnpm dev 2>&1 | tee logs/dev.log- but this:Stream Mode Interleaving
In stream mode, logs from multiple concurrent tasks are interleaved, making it difficult to:
Proposal
Add a
fileOutputoption that writes logs to files alongside the existing UI, not instead of it.Configuration
CLI Flag
Example Workflow
Output Modes
per-taskweb#dev.log,api#dev.logunifiedOutput Formats
plainansijsonI'm interested in contributing to this feature if there's appetite for it.
Related Issues
All reactions