Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/open-admin-org/reporter
This tool stores the exception information into the database and provides a developer-friendly web interface to view the exception information.
https://github.com/open-admin-org/reporter
Last synced: 27 days ago
JSON representation
This tool stores the exception information into the database and provides a developer-friendly web interface to view the exception information.
- Host: GitHub
- URL: https://github.com/open-admin-org/reporter
- Owner: open-admin-org
- License: mit
- Created: 2022-06-28T16:00:14.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-06-28T17:27:12.000Z (over 2 years ago)
- Last Synced: 2024-09-15T18:59:46.282Z (about 2 months ago)
- Language: PHP
- Size: 24.4 KB
- Stars: 4
- Watchers: 1
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Exception reporter for Open-Admin
=================================This tool stores the exception information into the database and provides a developer-friendly web interface to view the exception information.
[![StyleCI](https://styleci.io/repos/508366116/shield?branch=main)](https://styleci.io/repos/508366116)
[![Packagist](https://img.shields.io/github/license/open-admin-org/reporter.svg?maxAge=2592000&style=flat-square&color=brightgreen)](https://packagist.org/packages/open-admin-ext/reporter)
[![Total Downloads](https://img.shields.io/packagist/dt/open-admin-ext/reporter.svg?style=flat-square&color=brightgreen)](https://packagist.org/packages/open-admin-ext/reporter)
[![Pull request welcome](https://img.shields.io/badge/pr-welcome-green.svg?style=flat-square&color=brightgreen)]()## Screenshot
![open-admin-reporter](https://user-images.githubusercontent.com/86517067/176226958-b3ed0a1c-7b87-4e43-a2fd-f487f110d9f5.png)
## Installation
```
$ composer require open-admin-ext/reporter$ php artisan vendor:publish --tag=open-admin-reporter
$ php artisan migrate --path=vendor/open-admin-ext/reporter/database/migrations
$ php artisan admin:import reporter
```Open `app/Exceptions/Handler.php`,
1) Add: `use OpenAdmin\Admin\Reporter\Reporter;`
2) Call `Reporter::report()` inside `register` ... `reportable` method:
```php
reportable(function (Throwable $e) {
// Add This line
Reporter::report($e);
});
}
}```
Open `http://localhost/admin/exceptions` to view exceptions.
License
------------
Licensed under [The MIT License (MIT)](LICENSE).