Skip to content

Commit

Permalink
Set log info to verbose
Browse files Browse the repository at this point in the history
  • Loading branch information
jvlflame committed Aug 10, 2020
1 parent a081e53 commit fb8ba90
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Javinizer/Public/Write-JLog.ps1
@@ -1,9 +1,9 @@
function Write-JLog {
[CmdletBinding()]
param (
[Parameter()]
[Parameter(Mandatory = $true)]
[string]$Message,
[Parameter()]
[Parameter(Mandatory = $true)]
[ValidateSet('Debug', 'Info', 'Warning', 'Error')]
[string]$Level,
[Parameter()]
Expand All @@ -17,7 +17,7 @@ function Write-JLog {
}

if ($Level -eq 'Info') {
Write-Host $Message
Write-Verbose -Message $Message
Write-Log -Level $Level -Message $Message | Wait-Logging
}

Expand All @@ -28,6 +28,6 @@ function Write-JLog {

if ($Level -eq 'Error') {
Write-Log -Level $Level -Message $Message | Wait-Logging
Write-Error $Message -ErrorAction $Action
Write-Error -Message $Message -ErrorAction $Action
}
}

0 comments on commit fb8ba90

Please sign in to comment.