[GH-ISSUE #1250] addRecord function on Logger still exists #518

Closed
opened 2026-03-04 02:15:40 +03:00 by kerem · 1 comment
Owner

Originally created by @gmponos on GitHub (Dec 10, 2018).
Original GitHub issue: https://github.com/Seldaek/monolog/issues/1250

Reading the upgrade guide:

Removed non-PSR-3 methods to add records, all the add* (e.g. addWarning) methods as well as emerg, crit, err and warn.

I would've expect that addRecord function would have been removed as well since log function of PSR-3 exists...

Is this by design or it was missed?

Originally created by @gmponos on GitHub (Dec 10, 2018). Original GitHub issue: https://github.com/Seldaek/monolog/issues/1250 Reading the upgrade guide: > Removed non-PSR-3 methods to add records, all the add* (e.g. addWarning) methods as well as emerg, crit, err and warn. I would've expect that `addRecord` [function](https://github.com/Seldaek/monolog/blob/master/src/Monolog/Logger.php#L284) would have been removed as well since `log` function of PSR-3 exists... Is this by design or it was missed?
kerem closed this issue 2026-03-04 02:15:40 +03:00
Author
Owner

@Seldaek commented on GitHub (Dec 11, 2018):

That one works with internal monolog levels only, that's why I kept it, it's kind of there to avoid calling toMonologLevel all the time.

<!-- gh-comment-id:446091776 --> @Seldaek commented on GitHub (Dec 11, 2018): That one works with internal monolog levels only, that's why I kept it, it's kind of there to avoid calling toMonologLevel all the time.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/monolog#518
No description provided.