thecodingmachine / monolog-universal-service-provider
Cross-framework module for monolog/monolog
Requires
- php: >=7.0
- container-interop/service-provider: ^0.3
- monolog/monolog: ^1.0
- thecodingmachine/common-factories: ^0.3
Requires (Dev)
- puli/cli: ^1.0
- puli/composer-plugin: ^1.0
README
Monolog universal module
This package integrates Monolog in any container-interop compatible framework/container.
Installation
composer require thecodingmachine/monolog-universal-service-provider
Once installed, you need to register the TheCodingMachine\Monolog\MonologServiceProvider
into your container.
If your container supports Puli integration, you have nothing to do. Otherwise, refer to your framework or container's documentation to learn how to register service providers.
Introduction
This service provider is meant to integrate Monolog into any container compatible with container-interop/service-provider.
By default, this package creates a logger that logs in the PHP error log but you can easily add/change handlers.
Expected values / services
This service provider expects the following configuration / services to be available:
Provided services
This service provider provides the following services:
Extended services
None
Project template courtesy of thecodingmachine/service-provider-template