assoconnect / log-bundle
Installs: 12 789
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 6
Forks: 0
Open Issues: 1
pkg:composer/assoconnect/log-bundle
Requires
- php: ^8.2
- ext-json: *
- doctrine/dbal: ^2.10|^3.0
- doctrine/doctrine-bundle: ^2.11
- doctrine/orm: ^2.9
- moneyphp/money: ^3.2|^4.0
- ramsey/uuid: ^4.3
- ramsey/uuid-doctrine: ^1.4
- symfony/framework-bundle: ^6.4|^7.0
- symfony/property-access: ^6.4
- symfony/serializer: ^6.4
Requires (Dev)
- assoconnect/php-quality-config: ^1.16
- phpstan/phpstan-symfony: ^1.0
- rector/rector: ^1.2
- symfony/security-core: ^6.4
- symfony/validator: ^6.4
- symfony/yaml: ^6.4
- dev-main
- v2.3.0
- v2.2.1
- v2.2.0
- 2.1.2
- 2.1.1
- v2.1.0
- v2.0.0
- v1.7.0
- v1.6.1
- v1.6.0
- v1.5.0
- v1.4.0
- v1.3.0
- v1.2.5
- v1.2.4
- v1.2.3
- v1.2.2
- v1.2.1
- v1.2.0
- v1.1.1
- v1.1.0
- v1.0.0
- dev-guillaume_rector
- dev-nna_fix_sf_deprectation
- dev-jwa_add_rector
- dev-flo_feature_doctrine_orm_3
- dev-jwa_fix_phpstan
- dev-jwa_update_symfony_7
This package is auto-updated.
Last update: 2025-11-24 08:30:55 UTC
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.