We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 127f710 commit a551a5bCopy full SHA for a551a5b
Sources/Winget-AutoUpdate/functions/Write-ToLog.ps1
@@ -99,7 +99,8 @@ function Write-ToLog {
99
}
100
101
# Create the log entry in CM format - note the exact format needed for OneTrace
102
- $CMLogLine = "<![LOG[$LogMsg]LOG]!><time=`"$time`" date=`"$date`" component=`"$Component`" context=`"`" type=`"$CMLogLevel`" thread=`"$ThreadID`" file=`"`">"
+ $ComputerName = $env:COMPUTERNAME
103
+ $CMLogLine = "<![LOG[$LogMsg]LOG]!><time=`"$time`" date=`"$date`" component=`"$Component`" context=`"`" type=`"$CMLogLevel`" thread=`"$ThreadID`" file=`"$ComputerName`">"
104
105
# Write to CM log file
106
$CMLogLine | Out-File -FilePath $CMLogFile -Append
0 commit comments