PHP code example of abdian / loglens
1. Go to this page and download the library: Download abdian/loglens library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
abdian / loglens example snippets
bash
php artisan loglens:index # build/update all indexes
php artisan loglens:index --watch # continuous incremental indexing
php artisan loglens:search "level:error after:-24h" --json
php artisan loglens:tail --query="level:>=warning"
php artisan loglens:stats --json
php artisan loglens:prune --days=30 --max-total-size=10G --dry-run
bash
php artisan vendor:publish --tag=loglens-config