SimpleLogPS.psm1
|
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 # MODULE FUNCTIONS INIT $functions = @() Get-ChildItem -Path "$(Split-Path $script:MyInvocation.MyCommand.Path)\functions\*" -Recurse -File -Filter '*.ps1' | Where-object -Filter { -not $_.Name.StartsWith("dev_") } | Where-object -Filter { -not $_.Name.StartsWith("dep_") } | ForEach-Object { . $_.FullName $functions += $_.BaseName } # MODULE VARIABLES $script:LogSecrets = @(); $script:LogPrint = $false; $script:LogPath = $null; $script:LogInitDate = $null; |