Loading video player...
In this video, I walk through a new feature I just added to my multi-tenant SaaS app built with FastAPI and React: **Audit Logs**. This feature keeps track of who did what in the system: • When records are created, updated, or deleted • Which user performed the action • On which tenant • With pagination + filtering The UI lets you quickly browse logs across tenants and filter by action types like create, update, delete and etc.. You can also **export logs as Excel** and **email that as an attachment** — perfect for admins, compliance workflows, or security reviews. The logs are stored as lightweight `.jsonl` files in a **shared storage location**, instead of a database. This keeps performance high and avoids unnecessary database bloat. Tech Used: • FastAPI (Python) • React + Tailwind UI + Shadcn • JSONL log streaming • openpyxl for Excel export • FastMail for email attachments If you're building SaaS products or multi-tenant systems, adding audit logs early builds trust, transparency, and credibility. #fastapi #python #saas #webdevelopment #programming #backend #reactjs #developers ⭐ Github: https://tinyurl.com/fsrapprepo