Skip to content

Conversation

eduardoboucas
Copy link
Member

@eduardoboucas eduardoboucas commented Oct 3, 2025

Summary

This PR adds a logger property to buildSite. When present, logs will continue to be streamed but printed using this custom function instead of console.log, letting consumers customise how logs will be processed (e.g. if logger is set to console.error, logs will be piped to stderr instead).

The buffer property, which tells Netlify Build to buffer logs and return them as a set of stderr/stdout arrays, takes precedence.

Copy link
Contributor

github-actions bot commented Oct 3, 2025

This pull request adds or modifies JavaScript (.js, .cjs, .mjs) files.
Consider converting them to TypeScript.

@eduardoboucas eduardoboucas changed the title feat: support custom log function feat: support custom logger Oct 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant