-
Notifications
You must be signed in to change notification settings - Fork 4k
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
feat(core): new annotations api #9563
Conversation
In [CDK 2.0] the `node.addWarning()`, `node.addError()` and `node.addInfo()` APIs will be removed in favor of a "trait" pattern: Logging.of(construct).addWarning(message) The existing APIs are still supported but marked as @deprecated. Related: aws/aws-cdk-rfcs#192 Design: https://github.com/aws/aws-cdk-rfcs/blob/master/text/0192-remove-constructs-compat.md#09-logging
Thank you for contributing! Your pull request will be updated from master and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork). |
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 wonder if Logging
is not going to give people the wrong impression. It's not so much a sequence of "this happens/that happens" (which is what most people will expect if you use the word "logging"), it's more of an annotation to a construct instead.
How about Annotations
instead?
That terminology also cleanly explains why you cannot "log" without a construct to attach the message to, which otherwise will trip people up.
Just a suggestion that I request you spend a couple of minutes evaluating. Otherwise, a fine change.
I suppose the replacements across the AWSCL are forthcoming?
I like |
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 do like Annotations
much better; good suggestion @rix0rrr !
Thank you for contributing! Your pull request will be updated from master and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork). |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
Thank you for contributing! Your pull request will be updated from master and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork). |
In CDK 2.0 the
node.addWarning()
,node.addError()
andnode.addInfo()
APIs will be removed in favor of a "trait" pattern:The existing APIs are still supported but marked as
@deprecated
.Related: aws/aws-cdk-rfcs#192, See Design.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license