Skip to content

Commit 2c975fc

Browse files
author
Lasim
committed
docs: update logging section in README with additional details and examples
1 parent 62576b0 commit 2c975fc

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

services/backend/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,7 @@ DEPLOYSTACK_ENCRYPTION_SECRET=your-32-character-secret-key-here # Required for
200200
DeployStack uses **Pino** logger with **Fastify** for high-performance, structured logging:
201201

202202
**Available Log Levels** (in order of severity):
203+
203204
- `trace` (10) - Very detailed debugging information
204205
- `debug` (20) - Debugging information for development
205206
- `info` (30) - General information (default for production)
@@ -208,11 +209,13 @@ DeployStack uses **Pino** logger with **Fastify** for high-performance, structur
208209
- `fatal` (60) - Fatal errors that cause application termination
209210

210211
**Environment-based Defaults:**
212+
211213
- **Development**: `debug` level with pretty-printed, colorized output
212214
- **Production**: `info` level with structured JSON output
213215
- **Override**: Set `LOG_LEVEL` environment variable to any level
214216

215217
**Examples:**
218+
216219
```bash
217220
# Show all logs including debug info
218221
LOG_LEVEL=debug npm run dev
@@ -225,6 +228,7 @@ LOG_LEVEL=error npm run start
225228
```
226229

227230
**Log Output Formats:**
231+
228232
- **Development**: `[2025-07-03 10:48:06.636 +0200] INFO: ✅ Database initialization completed`
229233
- **Production**: `{"level":30,"time":"2025-07-03T08:48:06.636Z","msg":"Database initialization completed"}`
230234

0 commit comments

Comments
 (0)