Travis CI update macOS to 10.13.3 from 10.12.6 and the logging tests for macOS started to fail after that.
Here are a few failed builds:
https://travis-ci.org/PowerShell/PowerShell/jobs/410647719#L4675
https://travis-ci.org/PowerShell/PowerShell/jobs/410584884#L5560
https://travis-ci.org/PowerShell/PowerShell/jobs/410959434#L5523
The logging tests for macOS is marked as pending for now by PR #7433.
I tried the script block logging on macOS 10.12.6 with the file powershell.config.json located in $PSHome and the logging works fine -- expected script invocation related events show up in Console. However, when starting pwsh with -settings <config.json>, Console shows a bunch of security exceptions (see an example screenshot below).
Be noted that, @TravisEz13 tried the scirpt block logging on his macOS (version 10.13.6), and Console consistently shows a bunch of security exception errors no matter by putting powershell.config.json under $PSHOME or by using -settngs <config.json>.

Travis CI update macOS to
10.13.3from10.12.6and the logging tests for macOS started to fail after that.Here are a few failed builds:
https://travis-ci.org/PowerShell/PowerShell/jobs/410647719#L4675
https://travis-ci.org/PowerShell/PowerShell/jobs/410584884#L5560
https://travis-ci.org/PowerShell/PowerShell/jobs/410959434#L5523
The logging tests for macOS is marked as
pendingfor now by PR #7433.I tried the script block logging on macOS
10.12.6with the filepowershell.config.jsonlocated in$PSHomeand the logging works fine -- expected script invocation related events show up inConsole. However, when startingpwshwith-settings <config.json>,Consoleshows a bunch of security exceptions (see an example screenshot below).Be noted that, @TravisEz13 tried the scirpt block logging on his macOS (version
10.13.6), andConsoleconsistently shows a bunch of security exception errors no matter by puttingpowershell.config.jsonunder$PSHOMEor by using-settngs <config.json>.