final-gene/monolog-module

1.0.1 2018-12-10 09:23 UTC

This package is auto-updated.

Last update: 2024-12-10 22:31:45 UTC


README

Monolog module for Zendframework 2

Installation

Installation of this module uses composer.

$ composer require final-gene/monolog-module

Then add FinalGene\MonologModule to your application configuration.

Configuration

The monolog settings can be placed in the autoload directory of your application.
The following example represents a possible configuration.

<?php
return [
    'monolog' => [

        // Error handler
        'error_handler' => 'DefaultLogger',

        // Loggers
        'loggers' => [

            'DefaultLogger' => [
                'handlers' => [
                    [
                        'class' => Monolog\Handler\NullHandler::class,
                        'params' => [
                            'level' => Monolog\Logger::DEBUG
                        ]
                    ]
                ]
            ]
        ]
    ]
];