polderknowledge / log-module
A Zend Framework module that sets up Monolog for logging in applications.
Installs: 8 694
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 8
Forks: 0
Open Issues: 0
Requires
- php: ^7.0
- wshafer/psr11-monolog: ^2.0
- zendframework/zend-modulemanager: ^2.3 || ^3.0
- zendframework/zend-mvc: ^2.3 || ^3.0
- zendframework/zend-servicemanager: ^2.3 || ^3.0
Requires (Dev)
- mikey179/vfsstream: ^1.6
- phpunit/phpunit: ^6.3
- polderknowledge/build-tools: ^2.0
- squizlabs/php_codesniffer: ^2.9
- zendframework/zend-log: ^2.9
- zendframework/zend-view: ^2.8
README
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.