mirror of
https://github.com/Seldaek/monolog.git
synced 2026-04-26 08:05:53 +03:00
[GH-ISSUE #1417] ElasticsearchFormatter: Force record values to be strings #592
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#592
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 @tomsommer on GitHub (Jan 7, 2020).
Original GitHub issue: https://github.com/Seldaek/monolog/issues/1417
Monolog version 2
ElasticsearchFormatter should force all records to be strings, since ElasticSearch will fail on field types mixing in an index.
It would also make sense to not allow deep arrays, basically flatten arrays and make them scalar.
@Seldaek commented on GitHub (May 11, 2020):
I don't think we can really do that without breaking BC.. It just means that currently you have to manage your context data carefully yourself.. The data provided by Monolog itself is consistently typed AFAIK. IMO this fact makes ElasticSearch generally speaking a poor choice for log storage but I can't choose what people use..