1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-08-04 12:17:35 +02:00

Allow changing the date format after normalizer creation, fixes #1459

This commit is contained in:
Jordi Boggiano
2020-12-11 13:31:25 +01:00
parent 61e5ff2b36
commit 9fc7a8a810

View File

@@ -65,6 +65,18 @@ class NormalizerFormatter implements FormatterInterface
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
*/