qlimix / logging-message-logger
Logging messages
2.0.0
2020-04-19 11:18 UTC
Requires
- php: >=7.4
- qlimix/logging: ^2.0
- qlimix/serializable: ^1.0
Requires (Dev)
- qlimix/code-standard: ^2.0
This package is auto-updated.
Last update: 2024-11-19 21:37:44 UTC
README
Logging messages.
Install
Using Composer:
$ composer require qlimix/logging-message-logger
usage
<?php use Qlimix\Logging\Logger\Message\SerializableMessageLogger; use Exception; $logHandler = new FooBarLogHandler(); $logger = new SerializableMessageLogger($logHandler); $logger->start($message); $logger->success($message); $logger->failed($message, new Exception()); $logger->critical($message, new Exception());
Testing
To run all unit tests locally with PHPUnit:
$ vendor/bin/phpunit
Quality
To ensure code quality run grumphp which will run all tools:
$ vendor/bin/grumphp run
Contributing
Please see CONTRIBUTING for details.