Logging icon indicating copy to clipboard operation
Logging copied to clipboard

Import-Module raises errors if in a script strict mode

Open petitPeyre opened this issue 4 years ago • 0 comments

the following script sometimes raises errors

Set-StrictMode -Version latest
Import-Module Logging

because of the way $Script:Logging -and $Script:LevelNames are tested in Set-LoggingVariables.ps1

petitPeyre avatar Mar 14 '21 20:03 petitPeyre