mirror of
https://github.com/Seldaek/monolog.git
synced 2026-04-26 08:05:53 +03:00
[PR #33] [MERGED] Rich logging #891
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#891
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/33
Author: @stof
Created: 5/31/2011
Status: ✅ Merged
Merged: 6/17/2011
Merged by: @Seldaek
Base:
master← Head:rich_logging📝 Commits (4)
a8d4fc4Tweaked the formatting of complex data in the LineFormatterc1675c5Added the support of a logging contexte9f3e0cMoved the channel as label on the FirePHP message for a better formatting0d728feFixed forwarding of the context in logging calls📊 Changes
14 files changed (+115 additions, -88 deletions)
View changed files
📝
src/Monolog/Formatter/FormatterInterface.php(+3 -3)📝
src/Monolog/Formatter/LineFormatter.php(+30 -16)📝
src/Monolog/Formatter/WildfireFormatter.php(+2 -1)📝
src/Monolog/Handler/AbstractProcessingHandler.php(+1 -1)📝
src/Monolog/Handler/FirePHPHandler.php(+1 -1)📝
src/Monolog/Handler/MailHandler.php(+2 -4)📝
src/Monolog/Handler/StreamHandler.php(+1 -1)📝
src/Monolog/Handler/SyslogHandler.php(+1 -1)📝
src/Monolog/Logger.php(+46 -30)📝
tests/Monolog/Formatter/JsonFormatterTest.php(+1 -0)📝
tests/Monolog/Formatter/LineFormatterTest.php(+13 -7)📝
tests/Monolog/Formatter/WildfireFormatterTest.php(+7 -17)📝
tests/Monolog/Handler/FirePHPHandlerTest.php(+6 -6)📝
tests/Monolog/TestCase.php(+1 -0)📄 Description
This adds the support of a logging context in Monolog. Currently, our handlers are mostly poor handler so they format it using LineFormatter as they can (the formatting has been improved to make arrays readable).
The feature will be used in the InsightHandler (see #30) with a new PR coming based on it.
The implementation of #18 would also be possible now IMO (but I will not do it for now. I don't use GELF so it is not my priority).
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.