assoconnect/log-bundle
Composer 安装命令:
composer require assoconnect/log-bundle
包简介
README 文档
README
Installation
composer require assoconnect/log-bundle
Description
This Symfony bundle provides a system creating a Log entity every time a fully Doctrine-managed entity is persisted, updated or removed.
The Log entity and the LogFactoryInterface have to be implemented.
A system of included and excluded entities can be used to decide which entities have to be logged.
Log.yaml format:
log:
log_filters:
includedEntities: ['App\Entity\includedEntity1', 'App\Entity\includedEntity2']
excludeEntities: ['App\Entity\excludedEntity1', 'App\Entity\excludedEntity2']
If both lists are empty, every entities will be logged. If only includedEntities is empty, everything will be logged unless the processed entity is an instanceof OR is_subclass_of at least one element of the exclude list.
If only excludeEntities is empty, only the entities instanceof OR is_subclass_of at least one element of the include list will be logged.
If both lists are not empty, the entity has to be an instanceof OR is_subclass_of at least one element of the include list AND NOT an instanceof or is_subclass_of at least one element of the exclude list.
统计信息
- 总下载量: 15.13k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 4
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-10-06