Build logs
Pass an onBuildLogs callback in JavaScript or on_build_logs in Python to receive messages during Template.build.
The SDK emits structured entries with a timestamp, level, and message. Levels are debug, info, warn, and error. Use toString() in JavaScript or str() in Python for a formatted line.
For terminal output, use defaultBuildLogger({ minLevel: "info" }) or default_build_logger(min_level="info"). Supply your own callback when logs must be filtered or sent to another destination.
A background build has no waiting callback. Fetch new entries with getBuildStatus or get_build_status and advance the offset. The Build a template guide shows the polling loop.
Do not write credentials or secret variable values to build logs.