webowi/symfony-monitoring-bundle

Symfony bundle that ships error logs to Monitoring Webowi with near-zero configuration.

Maintainers

Package info

github.com/webowi/symfony-monitoring-bundle

Type:symfony-bundle

pkg:composer/webowi/symfony-monitoring-bundle

Transparency log

Statistics

Installs: 21

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

v0.1.7 2026-08-24 16:29 UTC

This package is auto-updated.

Last update: 2026-08-24 16:49:28 UTC


README

Ships error-level Symfony logs (with full surrounding context) to Monitoring Webowi with near-zero configuration.

Install

composer require webowi/symfony-monitoring-bundle

Add to config/packages/symfony_monitoring.yaml:

symfony_monitoring:
    url: '%env(MONITORING_WEBOWI_URL)%'
    api_key: '%env(MONITORING_WEBOWI_API_KEY)%'
    level: error

Get your project's url and api_key from your Monitoring Webowi project's ingestion-key page.

Running in Docker? localhost inside your app's container does not reach a Monitoring Webowi instance running in a sibling container/stack. Use http://host.docker.internal:<port>/... (Docker Desktop on Mac/Windows) instead, or the instance's container/service name if both stacks share a Docker network.

That's it — no monolog.yaml wiring needed. The bundle registers the full handler chain (including a fingers_crossed buffer so the full DEBUG-and-up context leading up to an error is sent, not just the error line itself) automatically. For any log record carrying an exception in its context, the bundle also resolves an HTTP status code — the exception's own status if it implements HttpExceptionInterface, otherwise 500 — and sends it as http_status_code.

Configuration reference

Key Required Default Description
url yes Base URL of your Monitoring Webowi instance
api_key yes Your project's ingestion API key
level no error PSR-3 level at which a buffered request's context is flushed and sent

License

MIT