Skip to content

Commit 9fc7a8a

Browse files
committed
Allow changing the date format after normalizer creation, fixes #1459
1 parent 61e5ff2 commit 9fc7a8a

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/Monolog/Formatter/NormalizerFormatter.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,18 @@ public function formatBatch(array $records)
6565
return $records;
6666
}
6767

68+
public function getDateFormat(): string
69+
{
70+
return $this->dateFormat;
71+
}
72+
73+
public function setDateFormat(string $dateFormat): self
74+
{
75+
$this->dateFormat = $dateFormat;
76+
77+
return $this;
78+
}
79+
6880
/**
6981
* The maximum number of normalization levels to go through
7082
*/

0 commit comments

Comments
 (0)