Change the log file name
Changed the log file name from log.txt to chrome_downloader.log
This commit is contained in:
parent
73bede1aeb
commit
916e77dbe2
4 changed files with 10 additions and 3 deletions
4
.gitignore
vendored
4
.gitignore
vendored
|
@ -1,3 +1,5 @@
|
||||||
|
|
||||||
/Template
|
/Template
|
||||||
Log.txt
|
chrome_downloader.log
|
||||||
|
/Chrome - *_force_update
|
||||||
|
/Chrome - *
|
||||||
|
|
|
@ -14,7 +14,7 @@ function Log-Message {
|
||||||
[string]$message
|
[string]$message
|
||||||
)
|
)
|
||||||
$timestamp = Get-Date -Format $dateFormat
|
$timestamp = Get-Date -Format $dateFormat
|
||||||
Write-Output "[$timestamp] - $message" | Out-File -Append -FilePath "$PSScriptRoot\Log.txt" -Encoding utf8
|
Write-Output "[$timestamp] - $message" | Out-File -Append -FilePath "$PSScriptRoot\chrome_downloader.log" -Encoding utf8
|
||||||
}
|
}
|
||||||
|
|
||||||
# Log the start of the script
|
# Log the start of the script
|
||||||
|
|
5
Log.txt
Normal file
5
Log.txt
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
[26/05/2024 17:03:05] - Script initiation: Chrome Downloader
|
||||||
|
[26/05/2024 17:03:05] - Directory creation: 'Chrome - VERSION_force_update' successfully created in C:\Users\Olai\OneDrive\Documents\GitHub\Chrome-Downloader
|
||||||
|
[26/05/2024 17:03:05] - Success: Forced Template successfully copied to C:\Users\Olai\OneDrive\Documents\GitHub\Chrome-Downloader\Chrome - VERSION_force_update
|
||||||
|
[26/05/2024 17:03:08] - Download complete: 64-bit version of Chrome successfully downloaded to force update folder at C:\Users\Olai\OneDrive\Documents\GitHub\Chrome-Downloader\Chrome - VERSION_force_update\googlechromestandaloneenterprise64.msi
|
||||||
|
[26/05/2024 17:03:09] - Success: Folder renamed to Chrome - 125.0.6422.113_force_update
|
|
@ -10,7 +10,7 @@ function Log-Message {
|
||||||
[string]$message
|
[string]$message
|
||||||
)
|
)
|
||||||
$timestamp = Get-Date -Format $dateFormat
|
$timestamp = Get-Date -Format $dateFormat
|
||||||
Write-Output "[$timestamp] - $message" | Out-File -Append -FilePath "$PSScriptRoot\Log.txt" -Encoding utf8
|
Write-Output "[$timestamp] - $message" | Out-File -Append -FilePath "$PSScriptRoot\chrome_downloader.log" -Encoding utf8
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($config.options.enableRegularVersion -and -not $config.options.enableForcedVersion) {
|
if ($config.options.enableRegularVersion -and -not $config.options.enableForcedVersion) {
|
||||||
|
|
Loading…
Reference in a new issue