mirror of
https://github.com/Seldaek/monolog.git
synced 2026-04-26 16:15:49 +03:00
[PR #900] [CLOSED] Support for Apache Kafka #1408
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#1408
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/900
Author: @kozlice
Created: 12/10/2016
Status: ❌ Closed
Base:
master← Head:kafka📝 Commits (10+)
8443a0dInitial Kafka supportd1c5e76Edit docs71a077aInstall librdkafka in Travis6aa6362Attempt to fix Travis configfb3d849Attempt to fix Travis config3dd2b58Attempt to fix Travis config5cac42eAttempt to fix Travis config0457af3Attempt to fix Travis config5e67e66Attempt to fix Travis confige555583Dedupe extension enabling in Travis📊 Changes
6 files changed (+204 additions, -1 deletions)
View changed files
📝
.travis.yml(+6 -1)📝
composer.json(+1 -0)📝
doc/02-handlers-formatters-processors.md(+1 -0)➕
src/Monolog/Handler/KafkaHandler.php(+85 -0)➕
tests/Monolog/Handler/KafkaHandlerTest.php(+76 -0)➕
tests/install-librdkafka.sh(+35 -0)📄 Description
Hi,
This is a very simple support for logging into Apache Kafka using rdkafka extension (there are a few libraries for PHP, but this once seems to be most mature and supports Kafka versions 0.8, 0.9 & 0.10).
Tests included, phpunit's coverage report shows 100% for handler.
Travis config updated to install extension from PECL (and librdkafka headers which it requires).
Manually checked that it works with most recent Kafka release (0.10.1).
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.