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.
SQLLogger is registered. The key integration point is attaching the logger to the Doctrine DBAL connection used by Laravel, not just enabling a Laravel query listener.local or staging, perform a known write operation (create, update, delete, raw INSERT/UPDATE/DELETE), then inspect the configured log channel.INSERT, UPDATE, or DELETE statements occur. This catches accidental writes from observers, events, or cascading model saves.SQLLogger. Queries executed entirely outside the Doctrine connection, or through a different PDO handle, may not be captured.SELECTs are expected. Do not use it as a complete query profiler.startQuery/stopQuery timings can be misleading inside long transactions. Use the SQL text and sequence as the primary signal, not elapsed time alone.php artisan config:clear in local/staging. Cached config is a common reason “nothing logs.”How can I help you explore Laravel packages today?