Custom Laravel and Lumen 5.6+ Log channel handler that can store log events to SQL or MongoDB databases. Uses Laravel/Monolog native logging functionality.
MIT License
Bot releases are visible (Hide)
Added support for Laravel 11, thanks @joostdebruijn! https://github.com/danielme85/laravel-log-to-db/pull/61
Published by danielme85 about 1 year ago
Published by danielme85 over 1 year ago
Major release update to support Laravel 10 thanks to @saulens22.
Switched testing back to circle.ci (kind of works almost).
This update breaks backward compatibility do to monolog changes in Laravel 10.
See #52 for more info
Published by danielme85 over 1 year ago
This is a maintenance release to avoid unsupported package installation on Laravel < 10
Published by danielme85 almost 2 years ago
Fix an issue with the service provider on Lumen 9.
Update and change the test environment.
Published by danielme85 almost 3 years ago
Published by danielme85 over 3 years ago
Major release bump due to change in how the required SQL table migration file is included. Moved from integrated with ServiceContainer to a published resource. Creating an extra step in installation, however, should be more flexible and avoid conflicts when/if using custom tables or already having similar tables.
Published by danielme85 almost 4 years ago
Small maintenance update:
Published by danielme85 about 4 years ago
Fixed issue with the log:delete command when using a custom Log model.
Published by danielme85 over 4 years ago
Added support for Lumen.
Updated testing to Laravel 7.
Use string version of code trace on exceptions to avoid serialization of closures.
Published by danielme85 over 4 years ago
Fixed issue where adding an array with additional information to context was broken.
Published by danielme85 over 4 years ago
Bug fixes:
Published by danielme85 over 4 years ago
Fix issues with Exceptions and log queue workers.
Exceptions are now parsed into arrays before model is created in the queue worker.
Published by danielme85 over 4 years ago
Please note that the config file has changed if you are using a published and customized version of config/logtodb.php. .env file and potential config values in config/logging.php would still be the same.
Published by danielme85 over 4 years ago
Starting with v2.2.0, the datetime column will be saved as a string in the format given in 'datetime_format' in logtodb.php config file, or the LOG_DB_DATETIME_FORMAT value in your .env file.
Published by danielme85 over 4 years ago
Added a helper command to cleanup logs after a given age or max number of records in new config values.
Improved the delete log logic and cleaned up some unnecessary code.
Published by danielme85 almost 5 years ago
Published by danielme85 about 5 years ago
Published by danielme85 about 5 years ago
Published by danielme85 about 5 years ago
Added support for Laravel 6