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

Api Logger Bundle Laravel Package

adityasetiono/api-logger-bundle

Symfony2 bundle that logs REST API requests/responses (default /api/), tracks duration, and flags slow calls. Configurable enable/disable and slow-time threshold, with optional separate Monolog channels/files for API and slow logs.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • API Observability & Debugging: Enables structured logging for REST APIs, reducing debugging time for production issues (e.g., latency, payload errors).
  • Performance Profiling: Identifies slow endpoints (threshold: 1000ms by default) to prioritize optimizations in roadmaps.
  • Build vs. Buy: Justifies buying this lightweight package over custom logging (e.g., Monolog) if the team lacks time/resources to build from scratch.
  • Use Cases:
    • Incident Response: Logs requests/responses for postmortems (e.g., failed payments, auth errors).
    • API Versioning: Tracks changes in payloads across versions to support backward compatibility.
    • Security Audits: Logs suspicious activity (e.g., repeated failed requests) for anomaly detection.

When to Consider This Package

  • Adopt if:

    • Your API is Symfony2-based (not Laravel; see note below).
    • You need low-overhead logging (no external services like Datadog).
    • Your team prioritizes developer productivity over enterprise-grade tools.
    • You’re okay with abandonware (last release: 2017) and potential maintenance gaps.
  • Look elsewhere if:

    • You’re using Laravel (this is Symfony2-only; alternatives: Laravel’s built-in logging or packages like spatie/laravel-logging).
    • You need real-time monitoring (consider Prometheus + Grafana).
    • Your API has high throughput (this may add latency; benchmark first).
    • You require structured logging (e.g., JSON output for ELK stack; this bundle may need customization).

How to Pitch It (Stakeholders)

For Executives: "This bundle adds minimal effort to log and profile API calls, helping us catch performance bottlenecks and debug issues faster—without hiring devs to build it. For ~$0 cost, we gain visibility into slow endpoints (e.g., checkout flows) to improve conversion rates. Tradeoff: It’s unmaintained, but we can fork it if needed."

For Engineering: "Symfony2 teams: This gives us Monolog-like logging but tailored for APIs—automatically logs requests/responses and flags slow calls (>1s). Easy to install (Composer + Kernel config), but note it’s 6 years old. If we hit limits, we can extend it or switch to Laravel’s native tools. Let’s prototype it on a non-critical API first."

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.
emuniq/filament-browser-notifications
syriable/filament-translator
hungnm28/livewire-form
wenprise/eloquent
crudly/encrypted
fadion/bouncy
cuci/prototurk-sdk
gos/pubsub-router-bundle
cuci/prototurk-sdk-symfony
clementtalleu/easyadmin-markdown-bundle
codeflextech/permission-manager
karnoweb/livewire-datepicker
sayedenam/sayed-dashboard
milito/query-filter
apiboxsym/user-bundle
apiboxsym/health-check-bundle
jayeshmepani/jpl-moshier-ephemeris-php
elnasnato/laraliveui
labrodev/rest-sdk
sampaui/sampaui