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 dev-master 1.1.2
View more packages
goragod/kotchasan dev-master
kaidenchen/yii2-resque-enhance dev-master 1.0 v0.2
lionsad/service_container 1.0.0-beta5
psr-php7/log dev-master 1.0.0
redweb-tn/codeigniter4 dev-master 4.0
resque/yii2-resque dev-master
rkr/amazon-pay-sdk-php 2.x-dev
psr/log dev-master 1.1.2
View more packages
goragod/kotchasan dev-master
kaidenchen/yii2-resque-enhance dev-master 1.0 v0.2
lionsad/service_container 1.0.0-beta5
psr-php7/log dev-master 1.0.0
redweb-tn/codeigniter4 dev-master 4.0
resque/yii2-resque dev-master
rkr/amazon-pay-sdk-php 2.x-dev
psr/log dev-master 1.1.2
View more packages
goragod/kotchasan dev-master
kaidenchen/yii2-resque-enhance dev-master 1.0 v0.2
lionsad/service_container 1.0.0-beta5
psr-php7/log dev-master 1.0.0
redweb-tn/codeigniter4 dev-master 4.0
resque/yii2-resque dev-master
rkr/amazon-pay-sdk-php 2.x-dev
psr/log dev-master 1.1.2
View more packages
goragod/kotchasan dev-master
kaidenchen/yii2-resque-enhance dev-master 1.0 v0.2
lionsad/service_container 1.0.0-beta5
psr-php7/log dev-master 1.0.0
redweb-tn/codeigniter4 dev-master 4.0
resque/yii2-resque dev-master
rkr/amazon-pay-sdk-php 2.x-dev

Class usage:

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