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

How to log errors to cloudwatch? #3128

Closed
damianrr opened this issue Apr 18, 2019 · 7 comments
Closed

How to log errors to cloudwatch? #3128

damianrr opened this issue Apr 18, 2019 · 7 comments
Labels
feature-request Request a new feature

Comments

@damianrr
Copy link

** Which Category is your question related to? **

Logging errors

** What AWS Services are you utilizing? **

Amplify, AppSync, Cloudwatch

Hello, I'm wondering how could I log errors to Cloudwatch. By errors I mean not only AppSync errors but my own. I saw this: https://aws-amplify.github.io/docs/js/logger but all it does is console.log(...)

@haverchuck haverchuck added question General question feature-request Request a new feature and removed question General question labels Apr 18, 2019
@stale
Copy link

stale bot commented Jun 15, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale
Copy link

stale bot commented Jun 22, 2019

This issue has been automatically closed because of inactivity. Please open a new issue if are still encountering problems.

@stale stale bot closed this as completed Jun 22, 2019
@gitzhouxinyu1
Copy link

Any updates?

@rpostulart
Copy link

I am also very curious how to do this?

I can I stream application specific logs and aws services logs to cloudwatch to analyze them later?

@uxtx
Copy link

uxtx commented Jun 11, 2020

I saw this as well - I'm not sure there's any other option other than extend with a 3p solution, or roll your own lambda that pushes logs to cloudwatch via cloudwatchlog.putLogEvents https://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/CloudWatchLogs.html#putLogEvents-property or wherever else you want them to go. Any other thoughts?

@uxtx
Copy link

uxtx commented Jun 11, 2020

There's also this thread: #3524

@github-actions
Copy link

This issue has been automatically locked since there hasn't been any recent activity after it was closed. Please open a new issue for related bugs.

Looking for a help forum? We recommend joining the Amplify Community Discord server *-help channels or Discussions for those types of questions.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 11, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature-request Request a new feature
Projects
None yet
Development

No branches or pull requests

5 participants