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

Extending error logging #766

Closed
shivang007 opened this issue Dec 28, 2021 · 3 comments
Closed

Extending error logging #766

shivang007 opened this issue Dec 28, 2021 · 3 comments

Comments

@shivang007
Copy link

How can we extend the logging in the middleware?
As in, we want our own logger to log the stacks after attaching the mata data that we need, to index it in Elasticsearch, to be able to visualise it in Kibana.

@shivang007
Copy link
Author

Continuation of our discussion at #762 (comment)

@willfarrell
Copy link
Member

Have you checked out @middy/error-logger? You can customize the logger option to transform and ship logs where ever you need. If you'd like to create a community middleware, please open a PR to add it to the list.

@shivang007
Copy link
Author

Hi @willfarrell,
yes I tested out @middy/error-logger, customising the logger option fulfils our requirements 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants