File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -77,14 +77,14 @@ if ($logFiles.Count -lt 2) {
77
77
# Log entries from all files
78
78
[List [psobject ]]$logEntries = @ ()
79
79
80
- foreach ( $logfile in $ logFiles ) {
81
- [string ]$content = Get-Content $logFile .Path - Raw
80
+ for ([ int ] $i = 0 ; $i -lt $ logFiles.Count ; $i ++ ) {
81
+ [string ]$content = Get-Content $logFiles [ $i ] .Path - Raw
82
82
if (-not $content ) { continue } # Can be empty
83
- [string ]$name = $logFile .Name
83
+ [string ]$name = $logFiles [ $i ] .Name
84
84
85
85
[Match ]$m = [regex ]::Match($content , ' ^(?<stamp>\d\d\d\d-\d\d-\d\d \d\d:\d\d:\d\d\.\d\d\d) \[[A-Za-z]+\]' )
86
86
if (-not $m.Success ) {
87
- Write-Warning " Skipping log with non-standard format $ ( $logFile .Path ) "
87
+ Write-Warning " Skipping log with non-standard format $ ( $logFiles [ $i ] .Path) "
88
88
continue
89
89
}
90
90
You can’t perform that action at this time.
0 commit comments