It seems that the log should be like the PowerShell transcript log to make debugging easier. Currently, if there is a non-terminating error or terminating error it is not automatically logged. For example, was using Invoke-RestMethod in my function to call a REST API but it failed. I had to wrap that in a try..catch and Write-Host the exception to understand what was failing. But this means that everyone would need to wrap their function in a try..catch.