Projects and deployments
Build and runtime logs
Read a deployment's build output, and search its server logs from the last hour.
Both are on the deployment's page in Cloud and need the logs:read scope, which every role has. Cloud → Logs and a project's Logs tab show runtime logs too, for a deployment you choose (the current production deployment first).
Build logs
The Build logs tab shows the build's output from the first step marker (::step source) on, up to 2,000 lines. The page refreshes itself while the deployment is building. See The build pipeline for the steps.
Runtime logs
The Runtime logs tab shows what the deployment's server function logged in the last hour, newest first, up to 500 lines. Static deployments have no server function and no runtime logs.
- Filter matches messages case-insensitively (up to 200 characters).
- Refresh loads the latest lines.
- When more lines in the hour match than fit, the tab says it's showing the latest ones.
Levels
Each line gets a level, from the first of these that applies:
- Lambda's own lines (
START,END,REPORT,INIT_STARTand similar) are platform lines, shown without a level. - JSON messages with a
level,severityorlvlfield use it:error,err,fatal,critical,crit,alert,emergandemergencyare errors;warnandwarningare warnings;debug,traceandverboseare debug; anything else is info. Numeric pino levels map too (50 and up error, 40 warn, 30 info, below that debug). - Otherwise the Node.js log level applies:
console.erroris an error,console.warna warning,console.debugandconsole.tracedebug, andconsole.loginfo.
Messages longer than 4,000 characters are cut and marked.
Structured logs read well here:
console.log(JSON.stringify({ level: "warn", msg: "payment.retry", orderId, attempt }))Planned
- Live tail and ranges longer than an hour. Coming soon