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): add LoggingConfig to AmplifyConfig #3770

Merged

Conversation

NikaHsn
Copy link
Member

@NikaHsn NikaHsn commented Sep 20, 2023

Issue #, if available:

Description of changes:

  • add LoggingConfig to AmplifyConfig
  • logger package to use core logging config

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 September 20, 2023 19:40
@NikaHsn NikaHsn force-pushed the feat/logging/config branch from 0335f98 to 386f8fc Compare September 20, 2023 20:26
Comment on lines 281 to 282
defaultLogLevel = LogLevel.values
.byName(loggingConstraint.defaultLogLevel.toLowerCase());
Copy link
Contributor

Choose a reason for hiding this comment

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

Nah I would throw here - we shouldn't accept invalid configurations. Users may have had a typo or something silly.

Copy link
Contributor

Choose a reason for hiding this comment

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

Throw a ConfigurationError type

Copy link
Member Author

Choose a reason for hiding this comment

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

updated the logging config to use enum instead of string. so if the config file is not valid it throws at the configuration.

@NikaHsn NikaHsn merged commit b1a34a1 into aws-amplify:feat/logging/cloudwatch Sep 25, 2023
@NikaHsn NikaHsn deleted the feat/logging/config branch September 25, 2023 19:07
khatruong2009 pushed a commit that referenced this pull request Nov 27, 2023
* feat(logging): add LoggingConfig to AmplifyConfig
* chore(logging): cloudwatch logger plugin to use amplify_core logging config
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