Skip to content
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

Write-Log to file does not specify the loglevel in the formatted message #92

Open
brandonmcclure opened this issue Jun 7, 2022 · 0 comments

Comments

@brandonmcclure
Copy link
Owner

Describe the bug
When using the File log target, the loglevel of the message is not included in the file, but it is on the console.

To Reproduce

Set-logTargets -Console 1 -File "my.log"
Write-Log "Info message"
Write-Log "This is a warning" Warning
Write-Log "This is a error/big problem" Error

Expected behavior
Contents of my.log should contain:

Info message
[Warning] This is a warning
[Error] This is a error/big problem
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant