assoconnect / log-bundle
Installs: 12 530
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
This package is auto-updated.
Last update: 2025-10-30 15:41:07 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.