Can we log to the console during the build process?

I was able to do some debugging by throwing an error within the function since console.log is not output in the result. See Are there means of debugging/logging the output of the static `prerender` function of the Router?

It would be helpful to have means of logging to the build output.