flipboxfactory/craft-psr3

PSR-3 Logger for Craft CMS

2.0.0 2023-01-21 16:28 UTC

This package is auto-updated.

Last update: 2024-11-21 20:59:05 UTC


README

Join the chat at https://gitter.im/flipboxfactory/craft-psr3 Latest Version Software License Build Status Coverage Status Quality Score Total Downloads

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.