Merge pull request #652 from crpb/main

Write-ToLog: shorten the header code
pull/664/head
Romain 2024-08-21 00:10:08 +02:00 committed by GitHub
commit ee8742f214
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -26,7 +26,7 @@ function Write-ToLog {
#If header requested
if ($IsHeader) {
$Log = " `n################################################################`n# $(Get-Date -Format (Get-culture).DateTimeFormat.ShortDatePattern) - $LogMsg`n################################################################"
$Log = "#"*65 + "`n#`t$(Get-Date -Format (Get-culture).DateTimeFormat.ShortDatePattern) - $LogMsg`n" + "#"*65
}
else {
$Log = "$(Get-Date -UFormat "%T") - $LogMsg"