Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
Jefajers authored Jan 18, 2024
1 parent 13b7a5c commit 0e2514f
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions src/internal/functions/Write-AzOpsMessage.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -77,21 +77,21 @@
process {
# Evaluate message verbosity
$logLevels = @{
"Critical" = "1"
"Debug" = "8"
"Error" = "667"
"Host" = "2"
"Important" = "2"
"InternalComment" = "9"
"Output" = "2"
"Significant" = "3"
"SomewhatVerbose" = "6"
"System" = "7"
"Verbose" = "5"
"VeryVerbose" = "4"
"Warning" = "666"
"Critical" = 1
"Debug" = 8
"Error" = 667
"Host" = 2
"Important" = 2
"InternalComment" = 9
"Output" = 2
"Significant" = 3
"SomewhatVerbose" = 6
"System" = 7
"Verbose" = 5
"VeryVerbose" = 4
"Warning" = 666
}
[int]$intLevel = $logLevels[$LogLevel]
$intLevel = $logLevels[$LogLevel]
[int]$messageInfo = Get-PSFConfigValue -FullName 'PSFramework.Message.Info.Maximum'
if (($messageInfo -lt $intLevel) -or ([PSFramework.Message.MessageHost]::MinimumInformation -gt $intLevel) -and ($intLevel -notin 666..667)) {
# Message is below desired log verbosity, skip
Expand Down

0 comments on commit 0e2514f

Please sign in to comment.