Skip to content

Commit 35881d4

Browse files
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

11 files changed

+329
-67
lines changed

examples/demos/dashboard-integration/.env.example

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,8 @@ NEXTAUTH_SECRET=your-secret-here-replace-with-long-random-string
88

99
# ============================== Outpost Integration ==============================
1010
OUTPOST_BASE_URL=http://localhost:3333
11-
OUTPOST_API_KEY=demo-api-key-change-in-production
11+
OUTPOST_API_KEY=demo-api-key-change-in-production
12+
13+
# ============================== Logging ==============================
14+
# Options: error, warn, info, debug
15+
LOG_LEVEL=info

examples/demos/dashboard-integration/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ This demo represents a common integration scenario where:
101101
| `NEXTAUTH_SECRET` | Auth.js secret key | `your-secret-here` |
102102
| `OUTPOST_BASE_URL` | Outpost base URL | `http://localhost:3333` |
103103
| `OUTPOST_API_KEY` | Outpost API key | `demo-api-key-change-in-production` |
104+
| `LOG_LEVEL` | Application logging level (`error`, `warn`, `info`, `debug`) | `info` |
104105

105106
### Outpost Configuration (.env.outpost)
106107

0 commit comments

Comments
 (0)