feat : SearchLogParser accepte un pattern glob pour les logs d'accès

Balaye tous les fichiers correspondant au pattern (ex: *-access.log)
et leurs rotations .gz/.tar.gz. Valeur par défaut : *-access.log.
Label renommé en "Pattern des logs d'accès".

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-05-15 00:35:19 +02:00
parent 981c9f6cb3
commit 3bb83b3ffd
3 changed files with 26 additions and 21 deletions
+1 -1
View File
@@ -65,7 +65,7 @@ function apacheAccessLog(): string
if ($fromSettings !== '') {
return $fromSettings;
}
return (string)($_ENV['APACHE_ACCESS_LOG'] ?? getenv('APACHE_ACCESS_LOG') ?: 'lan.acegrp.varlog-access.log');
return (string)($_ENV['APACHE_ACCESS_LOG'] ?? getenv('APACHE_ACCESS_LOG') ?: '*-access.log');
}
function saveSiteSettings(array $data): bool