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

fix(logging): update public apis #12898

Conversation

ashwinkumar6
Copy link
Member

@ashwinkumar6 ashwinkumar6 commented Jan 25, 2024

Description of changes

Public logging APIs

BEFORE

  • category level
    • enable
    • disable
    • flushLogs
    • createLogger
  • cloudwatch provider level
    • enable
    • disable
    • getProvider
  • console provider level
    • enable
    • disable
    • getProvider

AFTER (with this PR)

  • category level
    • enable
    • disable
    • flushLogs
    • createLogger
    • configure
  • cloudwatch provider level
    • flushLogs
    • createLogger
    • configure

PS

  • cloudwatch object will also be exposed at both category and cw provider level in another PR
  • This is to get things moving, can create additional PRs for API changes

Description of how you validated changes

verified apis are visible

import { 
  enable,
  disable,
  flushLogs,
  createLogger,
  configure
} from "aws-amplify/logging";
import {
  flushLogs,
  createLogger,
  configure
} from "aws-amplify/logging/cloudwatch";

Checklist

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@ashwinkumar6 ashwinkumar6 requested a review from a team as a code owner January 25, 2024 17:10
@ashwinkumar6 ashwinkumar6 changed the title chore(logger): rename core 'Logger' to lower case (#12762) fix(logging): update public apis Jan 25, 2024
Comment on lines 7 to 8
describe('Cloudwatch provider APIs: getCloudWatchProvider', () => {
it('should get cloudWatchProvider', () => {
Copy link
Member

Choose a reason for hiding this comment

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

Nit: Doesn't need to be addressed yet since these are more or less just placeholders at this time but I think the test descriptions are out of date

Copy link
Member Author

Choose a reason for hiding this comment

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

ahh yes, will take note to update these test names
thanks

@ashwinkumar6 ashwinkumar6 merged commit 5526225 into aws-amplify:central-logger Jan 26, 2024
29 checks passed
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.

4 participants