PHP code example of renanliberato / buglogger

1. Go to this page and download the library: Download renanliberato/buglogger library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

renanliberato / buglogger example snippets



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