mirror of
https://github.com/Seldaek/monolog.git
synced 2026-04-26 08:05:53 +03:00
[GH-ISSUE #573] Logger - Array to String conversion error #197
Labels
No labels
Bug
Documentation
Feature
Needs Work
Support
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/monolog#197
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Whyounes on GitHub (Jun 7, 2015).
Original GitHub issue: https://github.com/Seldaek/monolog/issues/573
When you try to log an array like:
The Logger shouldn't be responsible for converting messages to string, I think this is the Formater job. We should be able to pass any type of object as long as the formater can handle it correctly.
am I missing something?
@stof commented on GitHub (Jun 7, 2015):
The first argument of
->infoMUST be a string. See the phpdoc of the method and the PSR-3 spec. Using the method with anything else is using it in a broken way.@Whyounes commented on GitHub (Jun 7, 2015):
I understand, Thanks