feat: full/rotate check

This commit is contained in:
fukusuket
2025-04-20 16:22:17 +09:00
parent 022ae40c1e
commit 59619f0966

View File

@@ -1478,7 +1478,7 @@ function AuditFileSize {
}
# Format-Tableには色つき出力の機能はないので、Write-Hostで色をつける
$tableLayout = "{0,-75} {1,-15} {2,-15} {3,-15} {4,-15} {5,-10} {6,-10} {7,-10}"
$tableLayout = "{0,-75} {1,-15} {2,-10} {3,-10} {4,-10} {5,-10} {6,-10} {7,-10}"
Write-Host ($tableLayout -f `
"Log File", `
"Current Size", `
@@ -1486,7 +1486,7 @@ function AuditFileSize {
"Default", `
"Recommended", `
"Correct Setting", `
"Is Log Full", `
"Log Full", `
"Log Mode" `
)
Write-Host ($tableLayout -f `
@@ -1496,8 +1496,8 @@ function AuditFileSize {
"------", `
"-----------", `
"--------------", `
"--------------", `
"--------" `
"-------", `
"-------" `
)
foreach ($result in $results) {
$color = if ($result.CorrectSetting -eq "Y") { "Green" } else { "Red" }