Logging icon indicating copy to clipboard operation
Logging copied to clipboard

Most targets ignore -ExceptionInfo

Open snow-jlove opened this issue 5 years ago • 1 comments

The WinEventLog and Console targets include logic to print -ExceptionInfo from Write-Log. For example: https://github.com/EsOsO/Logging/blob/4.2.13/Logging/targets/Console.ps1#L38-L40.

However, no other targets have similar logic: https://github.com/search?q=execinfo+repo%3AEsOsO%2FLogging+path%3A%2FLogging%2Ftargets

Can similar logic be added to all targets?

snow-jlove avatar May 24 '20 06:05 snow-jlove

You're right. Is due to the target to "present" the log line (think it about MVC). If you have anything working feel free to PR a patch.

EsOsO avatar Jun 01 '20 06:06 EsOsO