Write-ToLog: shorten the header code

pull/652/head
Christopher Bock 2024-07-21 05:23:40 +02:00
parent 777374e293
commit 1d387c08a2
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)`n" + "#"*65
}
else {
$Log = "$(Get-Date -UFormat "%T") - $LogMsg"