webiny / webiny-js

Open-source serverless enterprise CMS. Includes a headless CMS, page builder, form builder, and file manager. Easy to customize and expand. Deploys to AWS.
https://www.webiny.com
Other
7.41k stars 613 forks source link

feat: api log #4366

Closed brunozoric closed 2 weeks ago

brunozoric commented 3 weeks ago

Changes

This PR introduces a new package, api-log, which stores logs into the Log DynamoDB table. Logs are getting flushed into a table N milliseconds after first log is added via logger, on manual flush or on the request end.

How Has This Been Tested?

Jest and manually.

Documentation

How can users list logs? How can users prune logs...?

Update

Needs a project upgrade, which will add logger to the context.

Cloudformation template

New DynamoDB table is added so we need to add it to the CF template.

brunozoric commented 3 weeks ago

/cypress

github-actions[bot] commented 3 weeks ago

Cypress E2E tests have been initiated (for more information, click here). :sparkles: