https://github.com/getolympus/hades-error-handler
ᾍδης — Olympus Hades is a bundle used to handle all Olympus errors from your WordPress website and its plugins.
https://github.com/getolympus/hades-error-handler
error error-handler hades handler olympus olympus-bundle php wordpress
Last synced: 6 months ago
JSON representation
ᾍδης — Olympus Hades is a bundle used to handle all Olympus errors from your WordPress website and its plugins.
- Host: GitHub
- URL: https://github.com/getolympus/hades-error-handler
- Owner: GetOlympus
- License: mit
- Created: 2020-01-26T13:17:58.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-12-19T22:55:03.000Z (about 5 years ago)
- Last Synced: 2025-05-09T14:06:34.074Z (9 months ago)
- Topics: error, error-handler, hades, handler, olympus, olympus-bundle, php, wordpress
- Language: PHP
- Homepage:
- Size: 16.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Olympus Hades Error Handle
> **Olympus Hades Error Handler** is a bundle used to handle all Olympus errors from your WordPress website and its plugins.
```sh
composer require getolympus/olympus-hades-error-handler
```
---
[![Olympus Component][olympus-image]][olympus-url]
[![CodeFactor Grade][codefactor-image]][codefactor-url]
[![Packagist Version][packagist-image]][packagist-url]
[![MIT][license-image]][license-blob]
---
## Features
+ Better and secure folder structure
+ Dependency management with [**Composer**](https://getcomposer.org)
+ Seldaek [**Monolog**](https://github.com/seldaek/monolog) component
+ Symfony [**Error handler**](https://github.com/symfony/error-handler) component

## Initialization
To initialize Hades, you'll need to extend the main class before all:
```php
namespace MyCustomPackage;
use GetOlympus\Hades\Hades;
class ErrorDebugger extends Hades
{
}
```
Once done, simple initiate your custom class and register handlers:
```php
/**
* Use the ErrorDebugger to display errors
*/
$err = ErrorDebugger::register([
'debug' => WP_DEBUG,
'level' => WP_DEBUG ? 500 : 100,
'logs' => 'my/custom/logs/folder/',
'title' => 'My custom handler title',
]);
```
## Release History
See [**CHANGELOG.md**][changelog-blob] for all details.
## Contributing
1. Fork it ()
2. Create your feature branch (`git checkout -b feature/fooBar`)
3. Commit your changes (`git commit -am 'Add some fooBar'`)
4. Push to the branch (`git push origin feature/fooBar`)
5. Create a new Pull Request
---
**Built with ♥ by [Achraf Chouk](http://github.com/crewstyle "Achraf Chouk") ~ (c) since a long time.**
[olympus-image]: https://img.shields.io/badge/for-Olympus-44cc11.svg?style=flat-square
[olympus-url]: https://github.com/GetOlympus
[changelog-blob]: https://github.com/GetOlympus/Hades-Error-Handler/blob/master/CHANGELOG.md
[codefactor-image]: https://www.codefactor.io/repository/github/GetOlympus/Hades-Error-Handler/badge?style=flat-square
[codefactor-url]: https://www.codefactor.io/repository/github/getolympus/Hades-Error-Handler
[license-blob]: https://github.com/GetOlympus/Hades-Error-Handler/blob/master/LICENSE
[license-image]: https://img.shields.io/badge/license-MIT_License-blue.svg?style=flat-square
[packagist-image]: https://img.shields.io/packagist/v/getolympus/olympus-Hades-Error-Handler.svg?style=flat-square
[packagist-url]: https://packagist.org/packages/getolympus/olympus-Hades-Error-Handler