Zend Framework 3 module to log Exceptions handled.
This repo was made based on GMBN implementation of a module to work with handled Exceptions.
<?php
return array(
'service_manager' => array(
'factories' => array(
\Zend\Db\Adapter\Adapter::class => \Zend\Db\Adapter\AdapterServiceFactory::class,
),
'abstract_factories' => array(
'Zend\Db\Adapter\AdapterAbstractServiceFactory',
),
),
'db' => array(
'adapters' => array(
'logAdapter' => array(
'driver' => 'Pdo',
'dsn' => 'mysql:dbname=Logger;host=172.17.0.2',
'username' => 'YOURUSERNAME',
'password' => 'YOURPASSWORD',
'driver_options' => array(
\PDO::MYSQL_ATTR_INIT_COMMAND => 'SET NAMES \'UTF8\''
),
),
)
),
"logbug" => array(
'ignore' => array(
'code'=> array(
'403'
)
)
)
);
This application was tested into a recent installed ZendSkeletonApplication so it uses the default MVC components.
Specific modules used:
There is a table dump inside docs folder. The default database's name is Logger.