https://github.com/flipboxfactory/craft-psr3
PSR-3 logger for Craft CMS
https://github.com/flipboxfactory/craft-psr3
Last synced: over 1 year ago
JSON representation
PSR-3 logger for Craft CMS
- Host: GitHub
- URL: https://github.com/flipboxfactory/craft-psr3
- Owner: flipboxfactory
- License: mit
- Created: 2017-11-07T14:07:18.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2023-01-21T16:32:05.000Z (over 3 years ago)
- Last Synced: 2025-02-05T06:46:19.536Z (over 1 year ago)
- Language: PHP
- Size: 7.81 KB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# PSR-3 Logger for Craft CMS
[](https://gitter.im/flipboxfactory/craft-psr3?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
[](https://github.com/flipboxfactory/craft-psr3/releases)
[](LICENSE.md)
[](https://travis-ci.org/flipboxfactory/craft-psr3)
[](https://scrutinizer-ci.com/g/flipboxfactory/craft-psr3/code-structure)
[](https://scrutinizer-ci.com/g/flipboxfactory/craft-psr3)
[](https://packagist.org/packages/flipboxfactory/craft-psr3)
This package provides simple mechanism for PSR-3 logging via Craft CMS.
## Installation
To install, use composer:
```
composer require flipboxfactory/craft-psr3
```
## Testing
``` bash
$ ./vendor/bin/phpunit
```
## Usage
Define it as a component in your plugin
```php
'components' => [
'psr3logger' => [
'class' => flipbox\craft\psr3\Logger::class
]
]
```
or via your composer as an 'extra' definition
```json
"components": {
"psr3logger": "flipbox\\craft\\psr3\\Logger"
}
```
## Contributing
Please see [CONTRIBUTING](https://github.com/flipboxfactory/craft-psr3/blob/master/CONTRIBUTING.md) for details.
## Credits
- [Flipbox Digital](https://github.com/flipbox)
## License
The MIT License (MIT). Please see [License File](https://github.com/flipboxfactory/craft-psr3/blob/master/LICENSE) for more information.