Download the PHP package dcat-x/operation-log without Composer
On this page you can find all versions of the php package dcat-x/operation-log. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download dcat-x/operation-log
More information about dcat-x/operation-log
Files in dcat-x/operation-log
Download dcat-x/operation-log
More information about dcat-x/operation-log
Files in dcat-x/operation-log
Vendor dcat-x
Package operation-log
Short Description Operation log extension for Dcat Admin
License MIT
Homepage https://github.com/dcat-x/operation-log
Package operation-log
Short Description Operation log extension for Dcat Admin
License MIT
Homepage https://github.com/dcat-x/operation-log
Please rate this library. Is it a good library?
Informations about the package operation-log
功能特性
- 自动记录所有后台操作请求
- 支持多种 HTTP 方法过滤
- 敏感字段自动脱敏处理
- 灵活的路由排除规则
- 多语言支持(中文/英文/繁体中文)
- 可视化日志管理界面
安装
配置
扩展设置
在 Dcat Admin 扩展管理页面启用后,可通过设置页面配置:
| 配置项 | 说明 |
|---|---|
except |
排除的路由,不记录这些路径的操作 |
allowed_methods |
允许记录的 HTTP 方法 |
secret_fields |
敏感字段,这些字段的值会被脱敏处理 |
默认配置
- 敏感字段:
password,password_confirmation - 排除路由:
dcat-admin.operation-log.* - 允许方法:
GET,HEAD,POST,PUT,DELETE,CONNECT,OPTIONS,TRACE,PATCH
使用
安装并启用扩展后,系统会自动记录所有管理后台操作。
访问日志
通过菜单或直接访问:
日志内容
每条操作日志包含:
- 操作用户
- 请求方法 (GET/POST/PUT/DELETE 等)
- 请求路径
- 客户端 IP
- 请求参数 (敏感字段已脱敏)
- 操作时间
日志管理
- 支持按用户、方法、路径、IP、时间范围过滤
- 支持删除单条或批量删除日志
数据库
扩展会创建 admin_operation_log 表:
| 字段 | 类型 | 说明 |
|---|---|---|
| id | bigint | 主键 |
| user_id | bigint | 用户 ID |
| path | string | 请求路径 |
| method | string(10) | HTTP 方法 |
| ip | string(45) | 客户端 IP |
| input | text | 请求参数 (JSON) |
| created_at | timestamp | 创建时间 |
| updated_at | timestamp | 更新时间 |
开发
更新日志
详见 CHANGELOG
许可证
MIT
All versions of operation-log with dependencies
PHP Build Version
Package Version
The package dcat-x/operation-log contains the following files
Loading the files please wait ...