mirror of
https://github.com/Seldaek/monolog.git
synced 2026-04-27 00:25:50 +03:00
[PR #843] [CLOSED] Add ConstStub awareness to NormalizerFormatter #1378
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#1378
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?
📋 Pull Request Information
Original PR: https://github.com/Seldaek/monolog/pull/843
Author: @nicolas-grekas
Created: 9/2/2016
Status: ❌ Closed
Base:
master← Head:const-stub📝 Commits (1)
db062e2Add ConstStub awareness to NormalizerFormatter📊 Changes
3 files changed (+10 additions, -0 deletions)
View changed files
📝
composer.json(+1 -0)📝
src/Monolog/Formatter/NormalizerFormatter.php(+5 -0)📝
tests/Monolog/Formatter/NormalizerFormatterTest.php(+4 -0)📄 Description
By wrapping context values into
ConstStubobjects, one can add precise type information to log contexts. Yet, this results in pure noise when the context is dumped into log files.Since ConstStub is basically a value wrapper, NormalizerFormatter can remove it to get clean logs back.
This would be of paramount usefulness for the upcoming Symfony 3.2 profiler panel where we'd use this feature immediately to get a better log panel.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.