Skip to content

Commit

Permalink
Allow changing the date format after normalizer creation, fixes #1459
Browse files Browse the repository at this point in the history
  • Loading branch information
Seldaek committed Dec 11, 2020
1 parent 61e5ff2 commit 9fc7a8a
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/Monolog/Formatter/NormalizerFormatter.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,18 @@ public function formatBatch(array $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
*/
Expand Down

0 comments on commit 9fc7a8a

Please sign in to comment.