flipboxfactory / craft-psr3
PSR-3 Logger for Craft CMS
Installs: 80 933
Dependents: 6
Suggesters: 0
Security: 0
Stars: 0
Watchers: 4
Forks: 0
Open Issues: 0
Requires
- php: >=8.0
- craftcms/cms: ~3.0|~4.0
- psr/log: ^1.0
Requires (Dev)
- phpunit/phpunit: ^9.0
- squizlabs/php_codesniffer: ^2.0
This package is auto-updated.
Last update: 2024-10-21 20:51:52 UTC
README
This package provides simple mechanism for PSR-3 logging via Craft CMS.
Installation
To install, use composer:
composer require flipboxfactory/craft-psr3
Testing
$ ./vendor/bin/phpunit
Usage
Define it as a component in your plugin
'components' => [ 'psr3logger' => [ 'class' => flipbox\craft\psr3\Logger::class ] ]
or via your composer as an 'extra' definition
"components": { "psr3logger": "flipbox\\craft\\psr3\\Logger" }
Contributing
Please see CONTRIBUTING for details.
Credits
License
The MIT License (MIT). Please see License File for more information.