-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Do not prefix log output #901
Comments
This might be a good candidate for another option for log behavior |
What about UI or something like |
My main use case for this would be to use it with VS Code problem matchers. There are a bunch of built-in problem matchers (such as |
Hi! I have some difficulties to deep dive in the code base and know where we can remove the Can you help me by pointing me out where to start? :) Edit |
@sprohaszka There's going to be a little bit of complexity to this. The |
I can also pick this up, or help out if necessary. |
Just wanted to bump this issue. I'm using a custom pino logger that outputs JSON, and my parser gets tripped up by all the log prefixes |
If it make sense, I still work on my PR to improve it. |
I'd definitely appreciate that! |
I need to know what to improve 🙂 |
@sprohaszka I believe, though you have changed the code, you need to resolve the requested changes from gsoltis. |
FWIW, piping the output into this sed command:
did the trick for me! |
What about not changing the logs at all? Would that be a possibility? Just forward the original streams to Right now, by using FYI, this is explicitly mentioned on the
|
This was one of the few (only?) things I could not find an analog for in Turborepo when migrating from Lerna (which has |
I see this still has not been implemented, could I pick this up? If so are the following requirements for this correct?
An alternative would be to add a separate flag |
I can only speak for myself, but at least from my perspective "removing prefixes" wouldn't cut it. I'd like Apologies if this is what you had in mind already. |
I personally don't know to what extent turbo removes coloring, meta characters, etc. |
I'm seeing interest for:
In my estimation, making an output mode for stdout covers both concerns and with one swoop. I think that's the ticket! @rafaeltab, your point to being able to use this new output mode along with others is great. What do we think of the new list of options being:
|
Yes please! This is also suppressing eslint/tsc annotations when running in Github actions. |
@JannesMeyer @zomars You can use tsc-absolute and the suggested problem matcher setup in its README to get TSC annotations appearing correctly when using turborepo. Note that because TSC does not provide absolute paths, when running in a turborepo style setup GitHub is unable to resolve the paths, so you'll need to use tsc-absolute anyways, even if the prefixes were removed from turborepo. |
This is fixed in |
did this regress? the option doesn't seem to work with
|
It works when I use it like this.
|
@marcello3d We currently have a known bug where putting flags before the command (e.g. |
What version of Turborepo are you using?
1.1.7-canary.5
What package manager are you using / does the bug impact?
npm
What operating system are you using?
Mac
Describe the Bug
All the task log lines are prefixed with the scope, causing the logs to be hard to read.
Expected Behavior
Please do not prefix every log line.
To Reproduce
turbo run build --scope=foo
The text was updated successfully, but these errors were encountered: