Using PowerShell to Parse Log Files

This is a very short and sweet blog on a neat few lines of PowerShell I have been using to help focus on what matters in the output The D.R.G. Initiative creates. $AbsoluteFilePath = "C:\SomeLogFileFromYourGame.log" if([System.IO.File]::Exists($AbsoluteFilePath)) { gc $AbsoluteFilePath -wait | where {($_ -match "Error") -or ($_ -match "Assert"))} | Tee-Object -file "C:\SomeOutputFile.customlog" } That's … Continue reading Using PowerShell to Parse Log Files