Recommend this page to a friend! |
Classes of Andrey Iatsenko | PHP MonoLog Processor | README.md | Download |
|
DownloadMonoProcessor - Supplement your logging with auxiliary information on error
This Processor will display in the logs bread crumbs by which you can more quickly and accurately identify the cause of the error. :scroll: InstallationThe package can be installed via composer:
To get started, first publish MonoProcessor config and view files into your own project:
:scroll: Version Compatibility| Laravel | MonoProcessor | | ------- | ------------- | | v8.x | v1.x | | v7.x | v0.3.x | :scroll: Features
:scroll: UsageTo use MonoProcessor you need to add the following
As a result, you will get approximately the following information after the stack: :scroll: Configuration| Processor | Description | | ----------------- | ------------------------------------------------------------ | | stacktrace | Stack output when an error occurs | | memoryPeak | Memory peak at runtime | | git | Git branch and Git commit SHA | | phpinfo | php info (version) | | json_format | Output of additional information in the format JSON_PRETTY_PRINT| | command | Listen console commands | | levels | levels (DEBUG, INFO, NOTICE, WARNING, ERROR, CRITICAL, ALERT, EMERGENCY)| | uuid | Adds a unique identifier | | ----------------- | ------------------------------------------------------------ | | request | Logging of the received request | | request.base_info | add request host,ip,url,method | | request.header | add request header | | request.body | add request body | | ----------------- | ------------------------------------------------------------ | | breadcrumbs | What breadcrumbs do you need to collect | | breadcrumbs.auth | auth info | | breadcrumbs.sql | List of sql queries | | breadcrumbs.route | route info (name,action) | You can also get all harvested breadcrumbs using the |