php-extended/php-record-logger

A library that implements php-record-interface library for logging purposes

7.0.7 2024-12-08 16:12 UTC

README

A library that implements php-record-interface library for logging purposes.

coverage build status

Installation

The installation of this library is made via composer and the autoloading of all classes of this library is made through their autoloader.

  • Download composer.phar from their website.
  • Then run the following command to install this library as dependency :
  • php composer.phar php-extended/php-record-logger ^7

Basic Usage

This library may be used the following way :


use PhpExtended\Record\RecordComparatorLogger;

/* @var $comparator \PhpExtended\Record\RecordComparatorInterface */
/* @var $logger \Psr\Log\LoggerInterface */

$comparator = new RecordComparatorLogger($comparator, $logger);


And for the record provider :


use PhpExtended\Record\RecordProviderLogger;

/* @var $provider \PhpExtended\Record\RecordProviderInterface */
/* @var $logger \Psr\Log\LoggerInterface */

$comparator = new RecordProviderLogger($provider, $logger);

License

MIT (See license file).