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

Support for CloudWatch provider logger in Amplify v6+ #13336

Open
2 tasks
muvashi opened this issue May 3, 2024 · 1 comment
Open
2 tasks

Support for CloudWatch provider logger in Amplify v6+ #13336

muvashi opened this issue May 3, 2024 · 1 comment
Assignees
Labels
feature-request Request a new feature Logger Related to Logger category

Comments

@muvashi
Copy link

muvashi commented May 3, 2024

Is this related to a new or existing framework?

No response

Is this related to a new or existing API?

No response

Is this related to another service?

No response

Describe the feature you'd like to request

For adding logging statements, the following are the documentation:-

[+] JavaScript v5 :- https://docs.amplify.aws/javascript/prev/build-a-backend/utilities/console-logger/
[+] Newest JavaScript v6 :- https://docs.amplify.aws/javascript/build-a-backend/utilities/console-logger/

The requirement is to use CloudWatch provider logger in Amplify Gen2. Gen2 backend is only supported with Amplify JavaScript v6+ but v6+ does not support adding CloudWatch provider.

Sample code :-

"use client";

import { Amplify, AWSCloudWatchProvider, Logger } from "aws-amplify";

import config from "@/amplifyconfiguration.json";

Amplify.configure(config, { ssr: true });

const logger = new Logger('ComUI', 'DEBUG')
Amplify.register(logger)
logger.addPluggable(new AWSCloudWatchProvider({
    logGroupName: 'COM',
    logStreamName: 'ComUI',
    region: config.aws_project_region,
}))

export default function ConfigureAmplifyClientSide() {
    return null;
}

Describe the solution you'd like

Support CloudWatch provider logger with Amplify Gen2

Describe alternatives you've considered

NA

Additional context

No response

Is this something that you'd be interested in working on?

  • 👋 I may be able to implement this feature request
  • ⚠️ This feature might incur a breaking change
@muvashi muvashi added the pending-triage Issue is pending triage label May 3, 2024
@cwomack cwomack self-assigned this May 3, 2024
@cwomack cwomack added feature-request Request a new feature Logger Related to Logger category and removed pending-triage Issue is pending triage labels May 3, 2024
@cwomack cwomack changed the title Support for CloudWatch provider logger in Amplify Gen2/ JavaScript v6+ Support for CloudWatch provider logger in Amplify v6+ May 8, 2024
@ashwinkumar6
Copy link
Contributor

Hi @muvashi
Thanks for opening this feature request, we'll keep you posted on any updated

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request Request a new feature Logger Related to Logger category
Projects
None yet
Development

No branches or pull requests

3 participants