Repository navigation
Conversation
9583a76 to
fdec87d
Compare
|
very good |
IgorMinar
left a comment
There was a problem hiding this comment.
reposting my review summary from #14308:
My primary issue with this PR is that logging typically becomes very expensive (in terms of payload-size) very quickly. Until we have a design that can safely strip non-critical logs and minify the critical ones I think everyone is better off rolling their own solution. The api above would likely need to be changed to achieve these properties, and doing so after these apis are heavily used would be very disruptive and painful for everyone.
The cross-cutting concern of logging and necessity to provide a solution that works well for 3rd party components makes this a much harder problem than what it looks like on the surface and we are better off deferring tackling this problem rather than providing a solution that would send everyone down the wrong path.
|
@IgorMinar That sounds reasonable to me, thanks for the heads up. However, if it would be possible to make a change in how the Injector worked to make Services shakable that would solve everything! But I assume that's a rather difficult problem to solve. |
fdec87d to
8febd20
Compare
|
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. |
Please check if the PR fulfills these requirements
What kind of change does this PR introduce? (check one with "x")
What is the current behavior? (You can also link to an open issue here)
There is no logging service like AngularJS has as described here #5458
What is the new behavior?
Adds in an
AbstractLoggerwith a default implementation ofConsoleLoggerDoes this PR introduce a breaking change? (check one with "x")
Other information:
Closes #5458
Duplicate of #14308 but that appears to have gone stale
Will be able to fix several TODO's in a follow up PR such as : https://github.com/angular/angular/blob/master/packages/common/src/directives/ng_for_of.ts#L105