andriichuk/laravel-http-logger
A Laravel package that logs outgoing HTTP requests and responses to the database, making it easy to inspect, debug, and monitor third-party API calls with configurable logging, pruning, and a built-in dashboard.
api/*) or failure classes (5xx) without drowning in noise or spiking log storage costs — a lever product/support can pull during a live incident or customer escalation.config/http-logger.php, you can ship it dark in production, enable it per-environment, and evaluate before committing — a low-risk way to standardize logging conventions across services.Consider it when:
Look elsewhere when:
RequestHandled listener pattern isn't available.Caveats worth flagging: This is a 0.1.0 initial release. Public API and config keys should be treated as unstable; pin the version and expect breaking changes before 1.0. The stated "full test coverage" is self-reported — verify it in CI before depending on it in production paths.
For executives: This is a small, low-cost dependency that gives us production-grade HTTP logging without building it ourselves. It ships with privacy guardrails — sensitive headers and body fields are masked, long payloads truncated — so we can enable logging in customer-facing environments without a lengthy data-handling review. Filtering by route and status means we control log volume and therefore cost. Risk is low and contained: it's an early-stage (0.1.0) package, so we'll pin the version, enable it in non-production first, and validate test coverage in our own CI before broader rollout.
For engineering: Drop-in Laravel listener that logs requests/responses through a dedicated channel with a [HttpLogger] prefix. Configuration is a single publishable file with env support: route pattern filters (api/*), status-range filters (1xx–5xx), header allowlists with masking, and body field sanitization plus truncation. Everything is opt-in and environment-scoped, so we can enable it dark and tune before committing. Action items: pin to 0.1.0, confirm the claimed unit/feature/integration tests run in our pipeline, and agree on default masking rules for our domain before enabling in production.
How can I help you explore Laravel packages today?