-
Notifications
You must be signed in to change notification settings - Fork 26.3k
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
Conversation
There was a problem hiding this 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 :)
There was a problem hiding this 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 👍
d1c4e61
to
2d22dfd
Compare
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
2d22dfd
to
401ff51
Compare
Closing as this is no longer needed. |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
This commit adds a
Logger
that will format messages as JSONstrings 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)