laravel-log-to-db

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

Downloads
580.9K
Stars
136
Committers
8

Bot releases are visible (Hide)

laravel-log-to-db - v4.1.1 Latest Release

Published by danielme85 7 months ago

Added support for Laravel 11, thanks @joostdebruijn! https://github.com/danielme85/laravel-log-to-db/pull/61

laravel-log-to-db - v4.1.0

Published by danielme85 about 1 year ago

  • Improved critical exception handling and error reporting loop fix by @Manriel
  • Updated Mongodb package to mongodb / laravel-mongodb
laravel-log-to-db - v4.0.0

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

laravel-log-to-db - v3.0.4

Published by danielme85 over 1 year ago

This is a maintenance release to avoid unsupported package installation on Laravel < 10

laravel-log-to-db - v3.0.3

Published by danielme85 almost 2 years ago

Fix an issue with the service provider on Lumen 9.
Update and change the test environment.

laravel-log-to-db - v3.0.2

Published by danielme85 almost 3 years ago

  • Added emergency logging. #41
  • Added test runs for php8.
laravel-log-to-db - v3.0.1

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.

laravel-log-to-db - v2.4.2

Published by danielme85 almost 4 years ago

Small maintenance update:

  • Exception self-check fix.
  • Update testing env to php7.3/7.4.
laravel-log-to-db - v2.4.1

Published by danielme85 about 4 years ago

Fixed issue with the log:delete command when using a custom Log model.

laravel-log-to-db - v2.4.0

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.

laravel-log-to-db - v2.3.3

Published by danielme85 over 4 years ago

Fixed issue where adding an array with additional information to context was broken.

laravel-log-to-db - v2.3.2

Published by danielme85 over 4 years ago

Bug fixes:

  • Reverted how Exception traces are handled, previous release parsed to string then serialized to json format making it unnecessary difficult to unserialize.
  • Add additional Exception check on 'SaveLogEvent' queue job to avoid potential Exception->log->Exception loops if an error occurs in the queued job.
laravel-log-to-db - v2.3.1

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.

laravel-log-to-db - v2.3.0

Published by danielme85 over 4 years ago

  • Added better support for custom Eloquent Models for log events.
  • Standardized config variable names (they where slightly different depending on where they where changed).
  • Code cleanup and simplified config priority/overrides.

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.

laravel-log-to-db - v2.2.0

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.

laravel-log-to-db - v2.1.1

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.

laravel-log-to-db - v2.1.0

Published by danielme85 almost 5 years ago

  • Added correct spelling of helper functions: "removeOldestIfMoreThan" and "removeOlderThan".
  • Added function wrapper with wrong spelling: "removeOldestIfMoreThen" and "removeOlderThen" to avoid breaking changes.
  • Fixed db "cleanup" helper functions mentioned above not working as intended when using MongoDB.
laravel-log-to-db - v2.0.2

Published by danielme85 about 5 years ago

  • Change code to be less strict with the dateTime object of log events.
    This update should make the latest release of this package work with Laravel 5.6+ and Laravel 6.*
laravel-log-to-db - v2.0.1

Published by danielme85 about 5 years ago

  • Added support for Monolog style processors.
  • Removed introspection processors per default.
laravel-log-to-db - v2.0.0

Published by danielme85 about 5 years ago

Added support for Laravel 6

Package Rankings
Top 3.61% on Packagist.org
Badges
Extracted from project README
GitHub PHP from Packagist GitHub release GitHub tag Codecov CodeFactor CircleCI