Add audit logging and log streams to a Node Express app
Вставка
- Опубліковано 4 лип 2024
- MORE: lwj.dev/newsletter - Building a SaaS product is no small feat. And when you start selling to large customers, the list of requirements gets even longer - but if you want to land those six-figure (and beyond) contracts, you'll need to land enterprise-level features. In this tutorial, we're going to learn how to add audit logging and log streams to an existing Node app built with Express using WorkOS.
Source code: github.com/learnwithjason/nod...
Read this as a blog post with code samples and additional resources:
lwj.dev/blog/audit-logging-no...
---------------------------------------------------------------------------
Thanks to WorkOS for sponsoring this tutorial!
Get started at lwj.dev/workos
---------------------------------------------------------------------------
Chapters:
00:00 Why audit logging matters for SaaS companies
00:32 Dev setup and environment variables
01:51 What audit logging is and how it works
03:20 Build custom Express middleware for logging
06:18 Use the audit logging middleware
06:43 Add additional user details to the session
07:48 Define audit log events in WorkOS
09:02 Send audit log events from Express routes
10:24 Sending and reviewing audit logging events
11:16 How to configure log streams
12:21 A reminder about why these features matter - Наука та технологія
thank you man.very useful tutorial dude.thanks and love from iran