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