yzen.dev / mono-processor
This Processor will display in the logs bread crumbs by which you can more quickly and accurately identify the cause of the error.
Installs: 6 061
Dependents: 0
Suggesters: 0
Security: 0
Stars: 11
Watchers: 1
Forks: 0
Open Issues: 1
Requires
- php: ^7.2 || ^8.0
- illuminate/auth: ^v9.0
- illuminate/console: ^v9.0
- illuminate/contracts: ^v9.0
- illuminate/database: ^v9.0
- illuminate/http: ^v9.0
- illuminate/log: ^v9.0
- illuminate/queue: ^v9.0
- illuminate/routing: ^v9.0
- illuminate/support: ^v9.0
- monolog/monolog: 2.*
Requires (Dev)
- mockery/mockery: ^1.0
- phpstan/phpstan: ^0.12.37
- phpunit/phpunit: ^9.3
- squizlabs/php_codesniffer: *
This package is auto-updated.
Last update: 2024-10-29 23:30:36 UTC
README
This Processor will display in the logs bread crumbs by which you can more quickly and accurately identify the cause of the error.
📜 Installation
The package can be installed via composer:
composer require yzen.dev/mono-processor
To get started, first publish MonoProcessor config and view files into your own project:
php artisan vendor:publish --provider "MonoProcessor\ServiceProvider"
📜 Version Compatibility
📜 Features
- Extends standard logs
- Collection of SQL requests
- Collection of HTTP requests
- Authorized user information
- Route information
- Git information
- PHP information
- Memory information
📜 Usage
To use MonoProcessor you need to add the following tap
to your logging.php
config:
'channels' => [ 'daily' => [ 'driver' => 'daily', 'path' => storage_path('logs/laravel.log'), 'level' => 'debug', 'days' => env('LOG_DAYS', 7), 'tap' => [ MonoProcessor\MonoProcessors::class ] ] ]
As a result, you will get approximately the following information after the stack:
📜 Configuration
You can also get all harvested breadcrumbs using the get_breadcrumbs()
method.