add comment

pull/683/head
Romain 2024-09-03 00:20:04 +02:00
parent f2ddee5a96
commit 5fc69335b5
1 changed files with 1 additions and 0 deletions

View File

@ -19,6 +19,7 @@ function Invoke-LogRotation ($LogFile, $MaxLogFiles, $MaxLogSize) {
# construct name of archived log file
$newLogFileName = $logFileNameWithoutExtension + (Get-Date -Format 'yyyyMMddHHmmss').ToString() + $logFileNameExtension
# rename old log file
Rename-Item -Path $LogFile -NewName $newLogFileName -Force -Confirm:$false
# create new file