cell_tower Broadcast Station
visibility 4.4K views schedule 2 years ago
CULCHR.TV Vintage Exclusive
Vintage Sneakers Streetwear +37

Add audit logging and log streams to a Node Express app

MORE: https://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: https://github.com/learnwithjason/node-express-audit-log-event-stream-workos Read this as a blog post with code samples and additional resources: https://lwj.dev/blog/audit-logging-node-express --------------------------------------------------------------------------- Thanks to WorkOS for sponsoring this tutorial! Get started at https://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

0:00 / 0:00
visibility 4,360 views thumb_up 80 comment 2 schedule 12:47 2023 2 years ago
MORE: https://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: https://github.com/learnwithjason/node-express-audit-log-event-stream-workos Read this as a blog post with code samples and additional resources: https://lwj.dev/blog/audit-logging-node-express --------------------------------------------------------------------------- Thanks to WorkOS for sponsoring this tutorial! Get started at https://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