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
When I execute this script with default values for preferences variables and without any switch for Verbose, Debug, ... here is the output :
If I execute the script with a -Verbose switch (or another one), I thought the Verbose level output would be displayed by the PowerShell sink. It isn't whereas the value of the associated preference variable has actually changed to Continue :
If I set the $VerbosePreference variable to Continue before executing the script (or use the -ToParameters switch in ````Set-MinimumLevel``` the verbose log is displayed by the PowerShell sink.
Is this behavior normal ? If yes, what am I understanding wrong ?
The text was updated successfully, but these errors were encountered:
I created a sample script to illustrate the outputs of a logger with both Console and PowerShell sinks :
When I execute this script with default values for preferences variables and without any switch for Verbose, Debug, ... here is the output :
If I execute the script with a
-Verbose
switch (or another one), I thought the Verbose level output would be displayed by the PowerShell sink. It isn't whereas the value of the associated preference variable has actually changed toContinue
:If I set the
$VerbosePreference
variable toContinue
before executing the script (or use the-ToParameters
switch in ````Set-MinimumLevel``` the verbose log is displayed by the PowerShell sink.Is this behavior normal ? If yes, what am I understanding wrong ?
The text was updated successfully, but these errors were encountered: