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

feat(logging):send amplify library logs to cloudwatch #3893

Conversation

NikaHsn
Copy link
Member

@NikaHsn NikaHsn commented Oct 3, 2023

Issue #, if available:

Description of changes:

  • register CloudWatchLoggerPlugin to AWSLogger. AWSLogger is the root logger and so all logs will be sent to cloudwatch
  • set log level to verbose so CloudWatchLoggerPlugin gets all the logs and filters based on the logging constraints
  • use AmplifyLoggerMixin for amplify libraries so they have the amplify namespace added to their logger full namespace
  • override get logger to use category logger

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@NikaHsn NikaHsn requested a review from a team as a code owner October 3, 2023 16:44
@NikaHsn NikaHsn force-pushed the feat/logging/send-category-logs branch from 723398b to 77f1886 Compare October 4, 2023 18:27
feat(logging):send amplify library logs to cloudwatch
@NikaHsn NikaHsn force-pushed the feat/logging/send-category-logs branch from 77f1886 to 5cfe743 Compare October 6, 2023 20:33
@NikaHsn NikaHsn merged commit 6e733e9 into aws-amplify:feat/logging/cloudwatch Oct 6, 2023
@NikaHsn NikaHsn deleted the feat/logging/send-category-logs branch October 13, 2023 21:33
khatruong2009 pushed a commit that referenced this pull request Nov 27, 2023
feat(logging):send amplify library logs to cloudwatch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants