php-extended/php-record-assignable-logger

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

7.0.6 2024-07-31 13:35 UTC

README

A library that implements php-record-assignable-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-assignable-logger ^7

Basic Usage

This library may be used the following way :


use PhpExtended\Record\AssignableRecordLogger;

/* @var $record \PhpExtended\Record\AssignableRecordInterface */
/* @var $logger \Psr\Log\LoggerInterface */

$record = new AssignableRecordInterface($record, $logger);

And for the record provider :


use PhpExtended\Record\AssignableRecordProviderLogger;

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

$provider = new AssignableRecordProviderLogger($provider, $logger);

License

MIT (See license file).