polderknowledge/log-module

A Zend Framework module that sets up Monolog for logging in applications.

2.3.0 2018-11-02 13:04 UTC

This package is auto-updated.

Last update: 2024-10-12 04:10:10 UTC


README

Latest Version on Packagist Software License Build Status Coverage Status Quality Score Total Downloads

The log module is a Zend Framework module that provides support for Monolog logger channels. This module also comes with a standard error logger enabled which is used to log PHP notices, warnings and errors in applications.

Install

Via Composer

$ composer require polderknowledge/log-module

Next add the module to the module config (usually config/modules.php or config/application.config.php):

return [
    'modules' => [
        'PolderKnowledge\\LogModule',
    ],
];

Usage

This module has a predefined ErrorLogger logging channel configured. This channel is used to write PHP notices, warnings and errors to. Since it depends on the application on how to handle these messages, there are no handlers defined for this channel.

Change log

Please have a look at the releases section for an overview of all changes.

Testing

$ composer test

Contributing

Please see CONTRIBUTING and CONDUCT for details.

Security

If you discover any security related issues, please report them via HackerOne instead of using the issue tracker or e-mail.

Community

We have an IRC channel where you can find us every now and then. We're on the Freenode network in the channel #polderknowledge.

Credits

License

Please see LICENSE.md for the license of this application.