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 a551a5b commit 2d6ed62Copy full SHA for 2d6ed62
Sources/Winget-AutoUpdate/functions/Write-ToLog.ps1
@@ -100,7 +100,8 @@ function Write-ToLog {
100
101
# Create the log entry in CM format - note the exact format needed for OneTrace
102
$ComputerName = $env:COMPUTERNAME
103
- $CMLogLine = "<![LOG[$LogMsg]LOG]!><time=`"$time`" date=`"$date`" component=`"$Component`" context=`"`" type=`"$CMLogLevel`" thread=`"$ThreadID`" file=`"$ComputerName`">"
+ $Context = "Started by:$env:USERNAME"
104
+ $CMLogLine = "<![LOG[$LogMsg]LOG]!><time=`"$time`" date=`"$date`" component=`"$Component`" context=`"$Context`" type=`"$CMLogLevel`" thread=`"$ThreadID`" file=`"$ComputerName`">"
105
106
# Write to CM log file
107
$CMLogLine | Out-File -FilePath $CMLogFile -Append
0 commit comments