Skip to content

Logging

Nubo server request logging is shown in development mode.

Terminal window
nubo serve app --dev

Request logs include:

PartDescription
MethodHTTP method.
PathRequest path.
Cache statusShows [cached] when cached parsed nodes were used.
DurationRequest duration.

Example shape:

GET /users/123 ............ [cached] 2.1ms

Nubo colors methods differently in terminal output.

MethodColor Meaning
GETGreen
POSTBlue
PUTCyan
PATCHYellow
DELETERed
Other methodsMagenta

Request logs from this development logger are shown only when NUBO_DEV is enabled.

Use:

Terminal window
nubo serve app --dev

Use the global CLI flag to disable colorized output.

Terminal window
nubo serve app --nocolor

Development request lines and structured Zap logs are separate. To see parser, interpreter, and server diagnostics:

Terminal window
nubo serve app --dev --loglevel debug

The 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.