Description

A logger that records messages into an easy to inspect public property.

Usage:

$logger = new TestLogger;

$logger->info('message'); $logger->emergency('message 2', ['data' => 'testing']);

var_dump($logger->messages); [ [ 'level' => 'info', 'message' => 'message', 'context' => [] ], [ 'level' => 'emergency', 'message' => 'message 2', 'context' => ['data' => 'testing'] ] ]

Type hierarchy

psr/log 1.1.4
View more packages
cyan.tseng/logger dev-master
graef685/log 4.0.0 1.1.4
imdbphp/imdbphp v4.1.1
instituteweb/typo3-cms 6.2.31
integer-net/solr-base 1.0.4
mrcnpdlk/imdbphp v4.1.1
ortnit/logger dev-master
piro/imdbphp v4.1.1
psr-php7/log dev-master 1.0.0
rkr/amazon-pay-sdk-php 2.x-dev
struggle-for-php/sfp-psalm-psr-log-plugin 0.2.0
psr/log 2.0.0 1.1.4
View more packages
graef685/log 4.0.0 3.0.0 2.0.0 1.1.4
integer-net/solr-base 1.0.4
ortnit/logger dev-master
psr-jb35/log dev-master 1.0.1
psr-php7/log dev-master 1.0.0
rkr/amazon-pay-sdk-php 2.x-dev
struggle-for-php/sfp-psalm-psr-log-plugin 0.2.0

Class usage:

This class is not referred by any other class/interface/traits in packagist packages.