Logging
Nubo server request logging is shown in development mode.
nubo serve app --devRequest Log Format
Section titled “Request Log Format”Request logs include:
| Part | Description |
|---|---|
| Method | HTTP method. |
| Path | Request path. |
| Cache status | Shows [cached] when cached parsed nodes were used. |
| Duration | Request duration. |
Example shape:
GET /users/123 ............ [cached] 2.1msMethod Colors
Section titled “Method Colors”Nubo colors methods differently in terminal output.
| Method | Color Meaning |
|---|---|
GET | Green |
POST | Blue |
PUT | Cyan |
PATCH | Yellow |
DELETE | Red |
| Other methods | Magenta |
Production Mode
Section titled “Production Mode”Request logs from this development logger are shown only when NUBO_DEV is enabled.
Use:
nubo serve app --devDisable Color
Section titled “Disable Color”Use the global CLI flag to disable colorized output.
nubo serve app --nocolorStructured runtime logs
Section titled “Structured runtime logs”Development request lines and structured Zap logs are separate. To see parser, interpreter, and server diagnostics:
nubo serve app --dev --loglevel debugThe default prod logging level disables Zap output. Set an explicit level such as debug, info, warn, or error for structured logs. Server failures still use a standard Go logger fallback when no Zap error logger is active. If error.nubo fails, error logging records both the route failure and the fallback-page failure.