You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A scheduled task is bundled with the package, which will delete rows in the ```logs``` table older than the expiration setting. To use this:
32
+
* Run ```php artisan vendor:publish``` to publish the ```database_logger.php``` config file to your project
33
+
* Run ```php artisan config:cache``` to ensure the project config is up to date
34
+
* Set the expiration length (in days) in your project's ```config/database_logger.php``` file
35
+
* Add an entry to the ```app/Console/Commands/Kernel.php``` file to schedule the cron job, something like: ```$schedule->command('logs:prune')->dailyAt('07:45');```
36
+
37
+
To run the command manually: ```php artisan logs:prune```
38
+
29
39
## Usage
30
40
The package is pretty much a custom channel for Monolog, so you can use the existing facade and methods.
0 commit comments