can add special handlers

Dieser Commit ist enthalten in:
Daniel Seifert 2025-02-06 22:48:48 +01:00
Ursprung f46ab842e5
Commit c9deb0f47c
Signiert von: DanielS
GPG-Schlüssel-ID: 6A513E13AEE66170
2 geänderte Dateien mit 7 neuen und 4 gelöschten Zeilen

Datei anzeigen

@ -43,7 +43,8 @@ trait OxidLoggerTrait
string $loggerName,
string $filePath,
int $logLevel = Logger::INFO,
?int $maxFiles = null
?int $maxFiles = null,
array $specialHandlers = []
): void
{
if (isset($this->loggers['oxid'])) {
@ -54,7 +55,8 @@ trait OxidLoggerTrait
$loggerName,
$filePath,
$logLevel,
$maxFiles
$maxFiles,
$specialHandlers
);
}

Datei anzeigen

@ -46,11 +46,12 @@ trait LoggerTrait
string $loggerName,
string $filePath,
int $logLevel = Logger::INFO,
?int $maxFiles = null
?int $maxFiles = null,
array $specialHandlers = [] // see LoggerFactory constants
): void
{
$this->loggers[$loggerName] = $this->getLoggerFactory()
->getFileLogger($loggerName, $filePath, $logLevel, $maxFiles);
->getFileLogger($loggerName, $filePath, $logLevel, $maxFiles, $specialHandlers);
}
/**