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

Gelf Php Laravel Package

mlehner/gelf-php

mlehner/gelf-php is a PHP library for sending GELF (Graylog Extended Log Format) messages to Graylog over UDP or TCP, with chunked message support, publishers, transports, and a PSR-3 logger for structured application logging.

Deep Wiki
Context7

Product Decisions This Supports

  • Observability roadmap / centralized logging strategy. GELF (Graylog Extended Log Format) is the wire format for shipping structured logs into Graylog. Adopting this package is a concrete commitment to "our logs land in one searchable place," which is the precondition for metrics-to-logs correlation, incident triage, and audit trails.
  • Build vs. buy for the logging pipeline. This is a "buy" (well, take) decision: instead of building a custom log shipper, you outsource the GELF framing, compression, and UDP chunking to a small dependency. It is the cheap option on the build-vs-buy curve and should be evaluated as such.
  • Backend standardization. Choosing this constrains you toward Graylog as the log store. That is a real platform decision (licensing of Graylog Open vs. commercial, ops ownership of a Graylog cluster, retention costs) that the transport library quietly presupposes.
  • Feature-level logging decisions. It supports structured-logging features that matter to the product: per-request correlation IDs, audit events, error enrichment for support/CS. GELF's typed fields mean logs become queryable data rather than grep-able text.
  • Risk/reversibility decisions. Because the surface is small, it informs a "reversible bet" call: you can adopt it now and swap transports later if you wrap it behind an internal logger interface.

When to Consider This Package

Consider it when:

  • You already run Graylog (or an equivalent GELF-ingesting backend) and need a PHP process to emit GELF.
  • The application is small, internal, or legacy, and you want the minimum dependency to get structured logs out the door.
  • You need UDP/TCP emission with message chunking/compression and are comfortable owning a vendored, low-churn dependency.
  • You accept a tactical integration and will isolate it behind your own logging abstraction.

Look elsewhere when:

  • New projects or modern PHP. Last release was February 2014; it predates PHP 7/8 and modern PSR logging. Expect to verify/port compatibility yourself.
  • You want maintained code with support. 21 stars and a decade-old release is a maintenance risk; the actively maintained lineage is graylog2/gelf-php and Monolog's GelfHandler. Monolog is the default answer if you already use PSR-3 logging.
  • You are not on Graylog. Committing a transport library to a backend you have not chosen is backwards.
  • You need HTTP/TLS transports, retry/buffering semantics, or vendor SLAs for a business-critical, high-volume pipeline.
  • Security-sensitive or audited environments where an unmaintained dependency in the logging path (which may carry sensitive payloads) requires a documented fork/EOL plan.
  • You need framework-native integration (Laravel/Symfony log channels) rather than raw calls — a thin adapter or Monolog handler is less work.

How to Pitch It (Stakeholders)

To executives: This is a free (MIT-licensed), narrow transport library that lets our PHP services push structured logs into a centralized logging backend. The upside is faster incident diagnosis and better auditability at near-zero license cost. The downside is age: it was last released in 2014 and has a single-maintainer-sized community (21 stars). Recommendation: treat it as an internal, vendored utility, not a strategic dependency. It reduces time-to-observability now; we should budget a small amount of engineering to wrap it and be ready to replace it with the maintained alternatives (Monolog's GELF handler or graylog2/gelf-php) if we hit compatibility or reliability issues.

To engineering: It is a thin GELF client — connection setup, payload serialization, optional compression, UDP chunking. Integrate it behind our own Logger interface so the transport is swappable and testable. Validate it against the PHP version we actually run (it predates PHP 7/8), pin the version, vendor it, and add a smoke test plus a replacement ticket. Do not let it leak into domain code; call sites should hit our abstraction.

Bottom line: Adopt only where Graylog is already the destination and the need is immediate; prefer Monolog/graylog2/gelf-php for greenfield work; and in either case, isolate the dependency so the decision stays reversible.

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.
socialdept/tenant-domains
tautvydasr/blade-class-names
socialdept/color-scales
maherelgamil/controller
coleus/widgets
coleus/table
coleus/users
coleus/music
coleus/health
coleus/calendar
coleus/notes
coleus/support
coleus/settings
coleus/apps
seampact/laravel
emmyconceptng/laravel-ng-postcode
jjsquady/round-robin
skyraptor/chatter
edlugz/sasapay
abbasudo/artisan-route