Skip to content
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

util: add colors to debuglog() #30930

Closed
wants to merge 1 commit into from

Conversation

BridgeAR
Copy link
Member

@BridgeAR BridgeAR commented Dec 13, 2019

This adds colors to the passed through arguments in case the stream
supports colors. The PID will also be highlighted.

This is especially helpful in case we print errors: core stack frames are going to be greyed out in that case. It should also improve highlighting objects.

image

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • documentation is changed or added
  • commit message follows commit guidelines

@nodejs-github-bot nodejs-github-bot added the util Issues and PRs related to the built-in util module. label Dec 13, 2019
@BridgeAR BridgeAR added the wip Issues and PRs that are still a work in progress. label Dec 13, 2019
This adds colors to the passed through arguments in case the stream
supports colors. The PID will also be highlighted.
@BridgeAR BridgeAR removed the wip Issues and PRs that are still a work in progress. label Dec 13, 2019
@nodejs-github-bot

This comment has been minimized.

@nodejs-github-bot
Copy link
Collaborator

@BridgeAR
Copy link
Member Author

@nodejs/util PTAL

@BridgeAR
Copy link
Member Author

@nodejs/util this could use some reviews.

@BridgeAR BridgeAR added the review wanted PRs that need reviews. label Dec 19, 2019
@targos
Copy link
Member

targos commented Dec 19, 2019

The change LGTM.
Could you post a screenshot example?

@BridgeAR
Copy link
Member Author

@targos I updated the initial post with a screenshot.

@BridgeAR
Copy link
Member Author

@nodejs/util PTAL

@BridgeAR BridgeAR added the author ready PRs that have at least one approval, no pending requests for changes, and a CI started. label Dec 24, 2019
BridgeAR added a commit that referenced this pull request Dec 25, 2019
This adds colors to the passed through arguments in case the stream
supports colors. The PID will also be highlighted.

PR-URL: #30930
Reviewed-By: James M Snell <jasnell@gmail.com>
@BridgeAR
Copy link
Member Author

Landed in a034583 🎉

@BridgeAR BridgeAR closed this Dec 25, 2019
BridgeAR added a commit that referenced this pull request Jan 3, 2020
This adds colors to the passed through arguments in case the stream
supports colors. The PID will also be highlighted.

PR-URL: #30930
Reviewed-By: James M Snell <jasnell@gmail.com>
@BridgeAR BridgeAR mentioned this pull request Jan 7, 2020
@targos targos added baking-for-lts PRs that need to wait before landing in a LTS release. lts-watch-v12.x labels Jan 14, 2020
@BridgeAR BridgeAR deleted the add-debuglog-colors branch January 20, 2020 12:07
codebytere pushed a commit that referenced this pull request Mar 14, 2020
This adds colors to the passed through arguments in case the stream
supports colors. The PID will also be highlighted.

PR-URL: #30930
Reviewed-By: James M Snell <jasnell@gmail.com>
@codebytere codebytere mentioned this pull request Mar 17, 2020
@targos targos removed the baking-for-lts PRs that need to wait before landing in a LTS release. label Sep 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
author ready PRs that have at least one approval, no pending requests for changes, and a CI started. review wanted PRs that need reviews. util Issues and PRs related to the built-in util module.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants