qlimix/logging-message-logger

2.0.0 2020-04-19 11:18 UTC

This package is auto-updated.

Last update: 2024-10-19 21:32:08 UTC


README

Travis CI Coveralls Packagist MIT License

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.