Thanks to visit codestin.com
Credit goes to github.com

Skip to content

feat(ngcc): support JSON formatted console logging #35876

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

Closed

Conversation

petebacondarwin
Copy link
Contributor

This commit adds a Logger that will format messages as JSON
strings before writing them to the console. This should allow tools
to parse the messages if running ngcc in a separate process.

FW-1960

(I have set the target as "master-only" since this is arguably a new public API for ngcc, so I expect it to go into 9.1.0)

@petebacondarwin petebacondarwin added feature Issue that requests a new feature target: major This PR is targeted for the next major release comp: ngcc labels Mar 5, 2020
@ngbot ngbot bot added this to the needsTriage milestone Mar 5, 2020
@pullapprove pullapprove bot requested a review from kara March 5, 2020 16:54
@petebacondarwin petebacondarwin requested review from gkalpak, JoostK and alan-agius4 and removed request for kara March 5, 2020 16:54
Copy link
Contributor

@alan-agius4 alan-agius4 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is good. Though can we wait until we figure out how we are going to integrate this in the CLI. Since if it will not be used by the CLI, there would be no reason why these should be merged.

Thanks @petebacondarwin :)

@petebacondarwin petebacondarwin added the action: review The PR is still awaiting reviews from at least one requested reviewer label Mar 5, 2020
Copy link
Member

@gkalpak gkalpak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One minor (optional) suggestion. Otherwise lgtm 👍

@gkalpak gkalpak added the action: cleanup The PR is in need of cleanup, either due to needing a rebase or in response to comments from reviews label Mar 5, 2020
@petebacondarwin petebacondarwin removed the request for review from JoostK March 7, 2020 20:03
@petebacondarwin petebacondarwin added state: blocked and removed action: cleanup The PR is in need of cleanup, either due to needing a rebase or in response to comments from reviews action: review The PR is still awaiting reviews from at least one requested reviewer labels Mar 7, 2020
@petebacondarwin
Copy link
Contributor Author

Blocked on whether CLI actually needs it or not...

This commit adds a `JsonConsoleLogger` that will format messages as JSON
strings before writing them to the console. This should allow tools
to parse the messages if running ngcc in a separate process.

FW-1960
@petebacondarwin
Copy link
Contributor Author

Closing as this is no longer needed.

@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Apr 12, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
cla: yes feature Issue that requests a new feature state: blocked target: major This PR is targeted for the next major release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants