Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Laravel Gelf Logger Laravel Package

hedii/laravel-gelf-logger

A Laravel package that adds a GELF log driver so your application can send structured logs directly to Graylog. Configure the host, port, and transport, then use Laravel’s logging system to ship messages with levels and context.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Observability stack selection. Choosing where application logs land is a platform decision, not just an engineering one. This package is the "last mile" connector that makes a self-hosted Graylog (or any GELF-compatible backend) a viable destination for a Laravel product, which directly shapes build-vs-buy comparisons against SaaS logging vendors.
  • Build vs. buy on log shipping. Writing and maintaining a GELF transport in-house is pure undifferentiated work. Adopting an MIT-licensed driver instead of building is the obviously correct call, and this package makes that trade explicit and cheap.
  • Incident response and MTTR. Structured, centrally searchable logs are a direct input to how fast the team can diagnose production issues. This supports roadmap commitments like "reduce mean time to resolution" or "add on-call runbooks."
  • Compliance and data residency. Because logs stay in infrastructure you control, this supports decisions around GDPR/data locality, audit retention, and customer-specific log segregation — areas where shipping logs to a third-party SaaS is a legal review, not a technical one.
  • Multi-tenant and per-customer debugging. GELF's structured fields let you tag logs with tenant/customer identifiers, enabling support and success teams to filter by account without engineering intervention.
  • Cost containment at volume. Log volume grows superlinearly with traffic; a self-hosted backend plus a free driver is a lever against per-GB ingest pricing.
  • Vendor de-risking. A thin, standards-based adapter keeps the exit cost low if the logging backend changes later — a useful property when negotiating with observability vendors.

When to Consider This Package

Adopt when:

  • The organization already runs, or has committed to, Graylog or another GELF-compatible endpoint (Logstash with a GELF input, some managed Graylog offerings). This package has no value without a destination.
  • The application is Laravel and the team wants structured logs (custom fields, exception context) rather than plain-text lines.
  • Log data must stay in infrastructure you control, for compliance, residency, or customer-contract reasons.
  • You want the integration cost to be near zero: it is a log driver, configured through config/logging.php, not a platform migration.
  • The team is comfortable owning the logging backend's operations. The package ships logs; it does not run Graylog, size its storage, or manage retention.

Look elsewhere when:

  • The logging destination is not GELF. Datadog, Sentry, New Relic, CloudWatch, and similar have their own first-party Laravel integrations with richer feature coverage.
  • You need vendor support, an SLA, or a security review with a named counterparty. A 135-star community package is not that, regardless of quality.
  • Monolog already ships a GelfHandler. For many teams the honest assessment is that a few lines of Monolog configuration achieve the same result without adding a dependency. This package's real value is convenience and Laravel-idiomatic configuration, not capability — be explicit about that when comparing.
  • Operational capacity for a self-hosted Graylog is absent. Adopting the driver without the backend is a half-decision.
  • Logging is on a hot path with strict latency budgets and the driver's transport behavior (blocking vs. fire-and-forget, UDP vs. TCP) has not been validated under load.
  • Long-term maintenance risk is unacceptable: small community, likely single maintainer. Mitigate by noting the surface area is tiny and forkable — but that is a risk acceptance, not an elimination.

How to Pitch It (Stakeholders)

For executives: This is a small, free, MIT-licensed connector that lets our Laravel application send structured logs to a logging backend we host ourselves. It supports three things leadership cares about: faster diagnosis of production incidents, keeping customer log data inside our own infrastructure for compliance and data-residency reasons, and avoiding per-gigabyte SaaS logging costs that scale with our traffic. The adoption cost is measured in hours, the license is permissive, and because it implements a standard format (GELF) rather than a proprietary one, it does not create lock-in — if we change logging vendors later, we change a configuration file, not the application.

For engineering: This is a Laravel log driver. Point it at a GELF endpoint, add the channel to config/logging.php, and structured logs flow to Graylog with custom fields and exception context intact. It is a thin wrapper, not a framework — treat it as replaceable. Before committing, confirm three things: our Graylog (or GELF-compatible) endpoint exists and is sized for our volume; the transport mode and its behavior under load meet our latency expectations; and we are comfortable that Monolog's built-in GelfHandler is not sufficient on its own, since for some setups it is. If we adopt, pin the version, note that the project is small and community-maintained, and confirm we could fork or replace it in an afternoon — which, given the code size, we could.

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
3mdikram/worldmoneywords
snowsoft/config
itmosoft/laravel-subscriptions
larva/laravel-ai-qwen
diephp/sequences
users-au/socialite-provider
twidpay/twid-logger
mrnewport/laravel-plaid
mrnewport/laravel-repo
mrnewport/laravel-docsign
mrnewport/laravel-stow
mrnewport/laravel-flow
mrnewport/laravel-priceable
mrnewport/laravel-nestedterms
fredmeng/laravel-apidoc-generator
itstructure/laravel-multilingual-tools
pdustdar/elasticsearch
markupai/php-sdk
rlacerda83/lumem-microservice-shipment
uni-method/symfony-lib