-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Getting double output with the "Short version" #28
Comments
Hi @visusys When you instantiate a new logger with the short version and do not pass a FilePath, Be aware that those two sinks are not the same. The PowerShell sink sends it to the 'correct' PowerShell streams, So the short version behaves like this: New-Logger | Set-MinimumLevel -Value Verbose | Add-SinkConsole | Add-SinkPowerShell | Start-Logger
Write-VerboseLog "Test verbose message"
Write-DebugLog "Test debug message"
Write-InfoLog "Test info message"
Write-WarningLog "Test warning message"
Write-ErrorLog "Test error message"
Write-FatalLog "Test fatal message"
Close-Logger For your use case i would advise to just use the full syntax. Best regards |
Results with this on Pwsh:
How can I suppress the duplicates?
Note: The "Full version" works as expected:
Any help would be fantastic.
The text was updated successfully, but these errors were encountered: