Skip to content

Commit

Permalink
Use Format-Table -Wrap on Get-WinEvent output
Browse files Browse the repository at this point in the history
  • Loading branch information
tuokri committed Nov 15, 2023
1 parent 53286f6 commit 8079bdb
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/UDKTests/run_udk.ps1
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
Start-Process -NoNewWindow -FilePath $PSScriptRoot\UDK-Lite\Binaries\Win64\UDK.com -ArgumentList "make", "-useunpublished"
Start-Process -NoNewWindow -FilePath $PSScriptRoot\UDK-Lite\Binaries\Win64\UDK.com `
-ArgumentList "make", "-useunpublished"

# TODO: this can list all event logs for "UDK".
Get-WinEvent -ListLog * |
ForEach-Object -parallel { Get-WinEvent @{ logname = $_.logname } -ea 0 } | Where-Object message -Match UDK
ForEach-Object -parallel { Get-WinEvent @{ logname = $_.logname } -ea 0 } `
| Where-Object message -Match UDK | Format-Table -Wrap

0 comments on commit 8079bdb

Please sign in to comment.