mirror of
https://github.com/Seldaek/monolog.git
synced 2025-08-05 04:37:38 +02:00
Allow changing the date format after normalizer creation, fixes #1459
This commit is contained in:
@@ -65,6 +65,18 @@ class NormalizerFormatter implements FormatterInterface
|
|||||||
return $records;
|
return $records;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function getDateFormat(): string
|
||||||
|
{
|
||||||
|
return $this->dateFormat;
|
||||||
|
}
|
||||||
|
|
||||||
|
public function setDateFormat(string $dateFormat): self
|
||||||
|
{
|
||||||
|
$this->dateFormat = $dateFormat;
|
||||||
|
|
||||||
|
return $this;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The maximum number of normalization levels to go through
|
* The maximum number of normalization levels to go through
|
||||||
*/
|
*/
|
||||||
|
Reference in New Issue
Block a user