mirror of
https://github.com/Seldaek/monolog.git
synced 2026-04-25 23:55:56 +03:00
[PR #61] [MERGED] added GelfHandler for sending log messages to Graylog2 #909
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#909
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/61
Author: @mlehner
Created: 2/23/2012
Status: ✅ Merged
Merged: 4/22/2012
Merged by: @Seldaek
Base:
master← Head:gelf📝 Commits (10+)
0f5971cMerge pull request #1 from msabramo/gelf2a4fd11added composer.lock to ignore, mlehner/gelf-php is now registered on packagistb8e409dadded require-dev block for tests, added proper description for suggested packaged551f34removed un-needed autoload function979c465created GelfMessageFormatter and related tests97b65bccontentPrefix should be contextPrefix07338aftest injecting a GelfMessageFormatter with constructor argumentsa497704write method should be protected, and protected methods after public methodsd95889acode cleanups as suggested by @stof7ffd390add composer commands to travis config📊 Changes
9 files changed (+299 additions, -107 deletions)
View changed files
📝
.gitignore(+2 -1)📝
.travis.yml(+4 -0)📝
composer.json(+4 -15)➖
composer.lock(+0 -11)➕
src/Monolog/Formatter/GelfMessageFormatter.php(+102 -0)📝
src/Monolog/Handler/GelfHandler.php(+14 -64)➕
tests/Monolog/Formatter/GelfMessageFormatterTest.php(+150 -0)📝
tests/Monolog/Handler/GelfHandlerTest.php(+22 -6)📝
tests/bootstrap.php(+1 -10)📄 Description
I created a GelfHandler for my own purposes, but decided to submit it back to the community since issue #18 has never been resolved.
This new GelfHandler requires my Gelf library published at https://github.com/mlehner/gelf-php.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.