You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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, Travis Plunk (@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>.
I've debugged and there is a code path loading the configuration before the -settingfile parameter has been parsed in Release configuration but not others. Here is the call stack
Activity
TravisEz13 commentedon Aug 4, 2018
I've debugged and there is a code path loading the configuration before the

-settingfileparameter has been parsed inReleaseconfiguration but not others. Here is the call stackAdd ability to parse `-settingsfile` before a console host is created
Parse the settings file before the console host is actually created
do not set snap in logging information on Unix
dantraMSFT commentedon Aug 9, 2018
Fixed by #7449