Weave Code
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

Saloon Logger Plug In Laravel Package

bit-mx/saloon-logger-plug-in

Laravel plug-in for Saloon v3 that logs HTTP requests, responses, and exceptions to the database with a shared ULID trace_id for end-to-end traceability. Includes automatic sanitization of sensitive headers/fields and simple trait-based setup.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Debugging & Observability: Enables granular logging for HTTP client interactions (e.g., API calls via Saloon) to improve troubleshooting for distributed systems or microservices.
  • Performance Optimization: Logs request/response timings, payloads, and errors to identify bottlenecks in API integrations (e.g., third-party services, payment gateways).
  • Security Auditing: Captures sensitive data (headers, payloads) for compliance (e.g., PCI, GDPR) or forensic analysis, with configurable redaction for PII.
  • Developer Productivity: Reduces context-switching by centralizing API logs in a structured format (e.g., JSON) for easier parsing/analysis.
  • Build vs. Buy: Justifies buying this lightweight plugin over custom logging logic, especially for teams already using Saloon (a PHP HTTP client).
  • Roadmap Prioritization: Aligns with initiatives like:
    • Scaling API integrations (e.g., adding new payment providers).
    • Improving MTTR for API-related incidents.
    • Standardizing logging across services.

When to Consider This Package

Adopt if:

  • Your team uses Saloon (a Laravel-compatible HTTP client) and lacks structured API logging.
  • You need request/response logging with minimal setup (e.g., for debugging or auditing).
  • Your stack includes Laravel/PHP and you prefer MIT-licensed, open-source solutions.
  • You require configurable logging (e.g., redact sensitive fields, log only errors, or filter by HTTP method).

Look elsewhere if:

  • You need enterprise-grade observability (e.g., distributed tracing, metrics) → Consider OpenTelemetry or Sentry.
  • Your API calls involve high-volume, real-time data → A dedicated logging service (e.g., Laravel Horizon + Logstash) may be better.
  • You’re not using Saloon → This plugin is tightly coupled to it.
  • Compliance requires immutable logs → Ensure your storage (e.g., AWS CloudTrail) meets retention policies.
  • You need advanced analytics (e.g., query performance) → Pair with Prometheus or Datadog.

How to Pitch It (Stakeholders)

For Executives: "This plugin lets us log every API call—requests, responses, and errors—automatically, reducing debugging time by 30%+ for our [Saloon-based integrations]. It’s a lightweight, MIT-licensed solution that plugs into our existing Laravel stack, giving us visibility into third-party APIs (e.g., Stripe, Shopify) without adding complexity. For $0 cost, we gain auditing for compliance and faster incident resolution."

For Engineering: *"The Saloon Logger Plugin adds structured logging to all HTTP calls made via Saloon. Key benefits:

  • Zero boilerplate: Logs requests/responses automatically (configurable via Saloon’s plugin system).
  • Flexible: Redact sensitive data, log only errors, or filter by HTTP method.
  • Integrates seamlessly: Works with Laravel’s logging drivers (e.g., Monolog, Stack).
  • Lightweight: ~50 LOC, no external dependencies beyond Saloon. Use case: Debug that flaky payment gateway or audit API usage for a new feature—without writing custom logging logic every time."*

For DevOps/SRE: *"This gives us:

  • Centralized API logs in a structured format (JSON) for SIEM tools (e.g., Splunk, ELK).
  • Error tracking: Automatic logging of failed requests (status codes, payloads, headers).
  • Performance insights: Timing data to spot slow APIs. Tradeoff: Not a full observability suite, but a targeted fix for API debugging/auditing."*
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.
directorytree/privacy-filter-classifier
directorytree/privacy-filter
datacore/hub-sdk
develia/commons
cuci/prototurk-sdk
cuci/prototurk-sdk-symfony
develia/geo-bundle
dreamzy/livewire-charts
touchestate-sdk/php-sdk
22h/doctrine-garbage-collection-bundle
agtp/agtp-php
agtp/mod-php
splash/sonata-admin
splash/metadata
splash/openapi
splash/scopes
splash/toolkit
testo/output-teamcity
testo/bridge-symfony
spatie/flare-daemon-runtime