vlinde / laravel-bugster
See any errors by category!
Installs: 2 851
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 1
Open Issues: 0
Requires
- illuminate/support: ~6|~7|~8|~9
- laravel-notification-channels/microsoft-teams: ^1.1.3
- laravel/nova: ^2.7|^3.0
- vlinde/nova-statistics: ^1.0
Requires (Dev)
- phpunit/phpunit: ~9.0
- dev-main
- V4.0.8
- V4.0.7
- V4.0.6
- V4.0.5
- V4.0.4
- V4.0.3
- V4.0.2
- V4.0.1
- V4.0.0
- 3.x-dev
- V3.0.8
- V3.0.7
- V3.0.6
- V3.0.5
- V3.0.4
- V3.0.3
- V3.0.2
- V3.0.1
- V3.0.0
- V2.0.12
- V2.0.11
- V2.0.10
- V2.0.9
- V2.0.8
- V2.0.7
- V2.0.6
- V2.0.5
- V2.0.4
- V2.0.3
- V2.0.2
- V2.0.1
- V2.0.0
- V1.3.5
- V1.3.4
- V1.3.3
- V1.3.2
- V1.3.1
- V1.3.0
- V1.2.0
- V1.1.3
- V1.1.2
- V1.1.1
- V1.1.0
- V1.0.12
- V1.0.11
- V1.0.10
- V1.0.9
- V1.0.8
- V1.0.7
- V1.0.6
- V1.0.5
- V1.0.4
- V1.0.3
- V1.0.2
- V1.0.1
- V1.0.0
This package is auto-updated.
Last update: 2024-11-08 07:23:21 UTC
README
Auto-detects every log file in the storage/logs folder and sorts all the errors by date.
Update ^1.1.2 custom categories and directories were added ( check config file )
Installation
Via Composer
$ composer require vlinde/laravel-bugster
Publish vendor for migrations then migrate
$ php artisan vendor:publish --tag=migrations $ php artisan vendor:publish --tag=bugster.config $ php artisan migrate
Usage
Add function to exception handler found in 'app/Exceptions/Handler.php'
public function renderForConsole($output, Throwable $e) { $bugster = new BugsterLoadBugs(); $bugster->saveError($output, $e, null, 'TERMINAL'); parent::renderForConsole($output, $e); } public function render($request, Throwable $e) { $render = parent::render($request, $e); $bugster = new BugsterLoadBugs; $bugster->saveError($request, $e, $render->getStatusCode()); return $render; }
How to move data to SQL
$ php artisan bugster:movetosql
How to delete older bugs
$ php artisan bugster:delete
You can add these commands to cron
$schedule->command('bugster:movetosql')->daily('00:30'); $schedule->command('bugster:delete')->daily('01:00'); $schedule->command('bugster:notify:statistics')->dailyAt('12:00'); $schedule->command('bugster:count-status-codes')->dailyAt('03:00');
Nova
Register Bugster tool in NovaServiceProvider
use Vlinde\Bugster\Bugster; public function tools() { return [ new Bugster; ]; }
Change log
Please see the changelog for more information on what has changed recently.
Contributing
Please see contributing.md for details and a todolist.
Security
If you discover any security related issues, please email author email instead of using the issue tracker.
Credits
License
license. Please see the license file for more information.