1.0.x-dev
1.0.9999999.9999999-devCross-framework module for monolog/monolog
MIT
The Requires
- php >=7.0
- container-interop/service-provider ^0.3
- monolog/monolog ^1.0
- thecodingmachine/common-factories ^0.3
The Development Requires
Cross-framework module for monolog/monolog
This package integrates Monolog in any container-interop compatible framework/container., (*2)
composer require thecodingmachine/monolog-universal-service-provider
Once installed, you need to register the TheCodingMachine\Monolog\MonologServiceProvider
into your container., (*3)
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., (*4)
This service provider is meant to integrate Monolog into any container compatible with container-interop/service-provider., (*5)
By default, this package creates a logger that logs in the PHP error log but you can easily add/change handlers., (*6)
This service provider expects the following configuration / services to be available:, (*7)
Name | Compulsory | Description |
---|---|---|
monologHandlers |
no | An array of Monoog handlers. If not set, a default ErrorLogHandler will be used to log in the error log. |
This service provider provides the following services:, (*8)
Service name | Description |
---|---|
Monolog\Logger |
the Monolog logger |
Psr\Log\LoggerInterface |
This is a simple alias to the Monolog logger |
None, (*9)
Project template courtesy of thecodingmachine/service-provider-template, (*10)
Cross-framework module for monolog/monolog
MIT