Commit 35881d4
committed
feat(demos): implement structured logging and cleanup debug statements
Replace console.log debugging with proper structured logging using Winston:
- Add winston logger with configurable LOG_LEVEL environment variable
- Replace all console.log/error statements with structured logging
- Remove verbose debug logging from API routes
- Keep valuable operational logging (errors, tenant operations, user events)
- Add log level configuration to environment documentation
Logging levels available:
- error: Critical issues only
- warn: Warnings and errors
- info: General information (default)
- debug: Detailed debugging information
This provides better observability while reducing noise in production.1 parent 7867c97 commit 35881d4
File tree
11 files changed
+329
-67
lines changed- examples/demos/dashboard-integration
- src
- app
- api
- auth/register
- overview
- dashboard/event-destinations
- [...path]
- lib
11 files changed
+329
-67
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
| 104 | + | |
104 | 105 | | |
105 | 106 | | |
106 | 107 | | |
| |||
0 commit comments