kcs / watchdog-bundle
Watchdog Bundle for Symfony2 and Doctrine2
Installs: 1 709
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 1
Open Issues: 0
Requires
- php: >=5.3.3
- doctrine/doctrine-bundle: ~1.2
- kcs/doctrine-extras: ~0.1
- symfony/symfony: >2.2.0
This package is auto-updated.
Last update: 2024-11-29 04:08:57 UTC
README
Requirements:
Symfony >= 2.8.0
Installation:
$ composer require kcs/watchdog-bundle
In order to make doctrine DBAL persister work you need to install kcs/doctrine-extras
package and register the Kcs\Doctrine\Types\BinaryArrayType
as binary_array
.
This is required since the trace log serialization could lead to problems if used into a
LONGTEXT
field in MySQL.
Configuration
By default this bundle uses doctrine orm to persist the errors to database.
You can override the persister implementing Storage\StorageInterface
and
specifying the new persister service id into persister
configuration parameter
... kcs_watchdog: persister: app_my_custom_persister ...
You can ignore some exceptions you don't want to log; Example:
kcs_watchdog: allowed_exceptions: - Symfony\Component\HttpKernel\Exception\NotFoundHttpException
Setting the enabled
config parameter to false
the the bundle will be
completly disabled. Services and parameters will be not loaded into the container