hsnbd/auditlog
Composer 安装命令:
composer require hsnbd/auditlog
包简介
Elasticsearch auditlog for laravel application.
README 文档
README
An easy way to use the official Elastic Search client for auditlog in your Laravel applications.
Installation
Install the current version of the hsnbd/auditlog package via composer:
composer require hsnbd/auditlog
After install, Laravel will automatically register The package's service provider.
Publish the configuration file:
php artisan vendor:publish --provider="Hsnbd\AuditLogger\AuditLoggerServiceProvider"
Usage
hsnbd/auditlog use laravel default queue.
php artisan queue:table
php artisan migrate
The AuditLog facade is used for logging. In order to use that.
\Hsnbd\AuditLogger\AuditLog::info('Hello World');
\Hsnbd\AuditLogger\AuditLog::debug('Hello World');
This command must run always.
php artisan queue:work database --queue=listeners
Please see Available Commands section before start.
Available Commands
Some useful console commands.
For Bootstrap basic setup for ELK stack
php artisan auditlog:bootstrap
Test auditlog if it is working or not.
php artisan auditlog:test
Laravel Model Log
If you want to track every step of laravel model, you can set it using.
class ABCModel extends Model implements \Hsnbd\AuditLogger\Interfaces\ShouldAuditLog {}
So you don't have to do anything after that.
Contributions and Support
Thanks to everyone who has contributed to this project!
Please see CONTRIBUTING.md to contribute.
If you found any bugs, Please report it using Github
Author
License
This project is licensed under the MIT License - see the License File.
hsnbd/auditlog 适用场景与选型建议
hsnbd/auditlog 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 47 次下载、GitHub Stars 达 2, 最近一次更新时间为 2021 年 02 月 03 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 hsnbd/auditlog 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 hsnbd/auditlog 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 47
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2021-02-03