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
@eduardoboucas eduardoboucas marked this pull request as ready for review October 15, 2025 10:05
@eduardoboucas eduardoboucas requested a review from a team as a code owner October 15, 2025 10:05
@eduardoboucas eduardoboucas merged commit 49f3730 into main Oct 15, 2025
95 of 98 checks passed
@eduardoboucas eduardoboucas deleted the feat/custom-logs-function branch October 15, 2025 13:31
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.

2 participants