axharus/art-handler
Composer 安装命令:
composer require axharus/art-handler
包简介
This package works with special art-sites.org api to notify our developers that something wrong happend
README 文档
README
This package only for art-sites.org clients.
What this package for
- Logging errors inside laravel
- Logging errors in JS and XHR Requests
Plugin works only when debug=false in .env file
Installation
ArtHandler requires Laravel v5.6+ and php 7.2+ to run.
Install package
$ composer require axharus/art-handler
Migrate database
$ php artisan migrate
Add provider to app.js if laravel version is lower than 5.5
\Axharus\ArtHandler\ArtHandlerServiceProvider::class
Publish resources
$ php artisan vendor:publish --provider="Axharus\ArtHandler\ArtHandlerServiceProvider" --force
For production it is better to use bable because debuger.js is written on ES6
Install debbuger.js into your template. Please install it in head section on top of outer in order to catch all error in your application.
{!! \Axharus\ArtHandler\ArtHandler::scriptLoader('/vendor/debuger/build/debuger-min.js') !!}
Pass path to babeled file into this function or use default if it is only for dev purposes
Configure .env file
ARTDEBUGER_API=api_key
ARTDEBUGER_FORCEDEBUG=false
ARTDEBUGER_JS_DEBUG=false
ARTDEBUGER_PREVENTOR=
ARTDEBUGER_HANDLER_URL=
ARTDEBUGER_ENABLED=true
ARTDEBUGER_CHUNKSIZE=5
API key you can get from your project manager
If you want to work with plugin with debug=true set FORCEDEBUG=true.
If you want to see sending log in console set ARTDEBUGER_JS_DEBUG=true
If you want to prevent sending errors with some codes pass it to ARTDEBUGER_ARTPREVENTOR using comma 404,500,403
If you want to force disable art handler set ARTDEBUGER_ENABLED=false
To optimize a lot of request set ARTDEBUGER_CHUNKSIZE
axharus/art-handler 适用场景与选型建议
axharus/art-handler 是一款 基于 JavaScript 开发的 Composer 扩展包,目前已累计 173 次下载、GitHub Stars 达 0, 最近一次更新时间为 2020 年 06 月 11 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 axharus/art-handler 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 axharus/art-handler 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 173
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-06-11