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

File Sql Logger Bundle Laravel Package

php-programmist/file-sql-logger-bundle

A Symfony bundle that logs application events to both flat files and SQL databases, giving you durable on-disk records plus queryable database entries for easier searching, filtering, and auditing without extra wiring.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Observability roadmap: Whether query-level logging for data-changing SQL (INSERT/UPDATE/DELETE) belongs in the platform’s diagnostics layer, separate from general APM.
  • Audit and compliance planning: Informs decisions on capturing mutable-query history for incident forensics, change review, and migration/backfill verification. This is a logging primitive, not a compliance-grade audit system.
  • Build vs. buy/adopt: A focused Doctrine SQLLogger integration may be cheaper than building in-house write-query logging, provided it fits the existing Doctrine/Laravel data layer.
  • Developer experience investment: Reduces time spent debugging write-path failures, transaction anomalies, bulk updates, and unexpected mutations in staging or internal environments.
  • Release and migration gating: Supports pre-production checks that migrations, backfills, and bulk operations issue the SQL expected.
  • Prioritization signal: If write-query visibility is a recurring support or incident-response burden, this is a low-cost enabler worth a spike. The terse v1.0.0 release note means scope and supported Doctrine versions must be validated before committing roadmap capacity.

When to Consider This Package

Consider it when:

  • The Laravel/PHP service uses Doctrine DBAL or a Doctrine-backed layer where SQLLogger hooks are available.
  • You need visibility into mutable statements, not just read queries.
  • The primary use case is staging, development, internal tooling, incident response, or migration/backfill verification.
  • You can wrap it behind configuration or a feature flag and pin the v1.0.0 dependency.
  • You need a small, focused logging hook rather than a full observability platform.
  • You can validate performance overhead, log volume, and sensitive-data handling in your environment.

Look elsewhere when:

  • You need production-grade APM, distributed tracing, dashboards, or sampling at scale; use OpenTelemetry, Sentry, Laravel Telescope, or similar.
  • You need immutable, tamper-evident, regulatory-grade audit logs with retention and access controls.
  • The application is pure Eloquent/query-builder without Doctrine SQLLogger integration points.
  • Write throughput is high enough that synchronous logging would create unacceptable overhead.
  • You require built-in PII redaction, retention policies, and access governance out of the box.
  • You need long-term support, SLA commitments, or a mature ecosystem; v1.0.0 is an early signal, not proof of maturity.

How to Pitch It (Stakeholders)

Executives: “This is a small, focused logger that gives us visibility into data-changing SQL. It can improve incident response, migration confidence, and audit readiness at low integration cost. We should pilot it in staging or internal tooling, measure overhead and data-handling risk, then decide whether to promote it. It does not replace our APM or compliance audit stack.”

Engineering: “It plugs into Doctrine’s SQLLogger to capture mutable queries. v1.0.0 is early, so pin the version, wrap it behind config, add tests around supported Doctrine versions, and confirm redaction and performance behavior. Treat it as a diagnostics building block, not a production audit ledger.”

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.
jinas/dhivatar
store-doc/laravel-storage-driver
plus-it/laravel-translation-manager
diephp/perhaps
diephp/telegraph
osmaviation/spreadsheet
microsoft/fluentui-system-icons
mmccook/php-json-canonicalization-scheme
middlewares/firewall
qubiqx/montapacking
nyoncode/laravel-package-console
pnscripts/filament-broadquill-lite
pnscripts/laravel-sentfold-lite
vleap/mx-sdk-laravel-internal
twidpay/utils
htetmyathlaing/scout-elasticsearch-driver
artisan-toolbox/front-awesome
ls/client-assistant
users-au/laravel-client
cgv/localized-resource