renanliberato/buglogger

There is no license information available for the latest version (1.0.1) of this package.

Zend Framework 3 module to log Exceptions handled.

1.0.1 2016-08-30 04:01 UTC

This package is auto-updated.

Last update: 2024-03-17 23:20:26 UTC


README

Zend Framework 3 module to log Exceptions handled.

Thanks

This repo was made based on GMBN implementation of a module to work with handled Exceptions.

Configuration

BugLogger\config\module.config.php

<?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'
            )
        )
    )
);

Zend Framework Modules

This application was tested into a recent installed ZendSkeletonApplication so it uses the default MVC components.

Specific modules used:

Database

There is a table dump inside docs folder. The default database's name is Logger.