Download the PHP package yoeriboven/laravel-log-db without Composer
On this page you can find all versions of the php package yoeriboven/laravel-log-db. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download yoeriboven/laravel-log-db
More information about yoeriboven/laravel-log-db
Files in yoeriboven/laravel-log-db
Package laravel-log-db
Short Description A database driver for logging with Laravel
License MIT
Homepage https://github.com/yoeriboven/laravel-log-db
Informations about the package laravel-log-db
Laravel Database Logger
This package provides a custom log driver for storing Laravel log messages in the database.
Compatible with Laravel 9, 10 and 11.
Installation
Install the package via Composer:
Publish and run the migrations:
Next, configure the database channel in config/logging.php
:
Usage
To use the database channel, either:
-
Add it to the stack channel for combined logging:
- Log directly to the database:
Fallback channel
If the database is unavailable, you can define a fallback channel to handle logs:
If no fallback channel is defined it will default to the single
channel.
Pruning the logs
To automatically delete logs older than a specified number of days, set the days
key in the configuration and schedule log pruning:
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Credits
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-log-db with dependencies
nesbot/carbon Version ^2.72|^3.0
spatie/laravel-package-tools Version ^1.9.2