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

ortnit/logger dev-master
redweb-tn/codeigniter4 dev-master 4.0
resque/yii2-resque dev-master
rkr/amazon-pay-sdk-php 2.x-dev
sammet/gestion-colecciones dev-master
ortnit/logger dev-master
redweb-tn/codeigniter4 dev-master 4.0
resque/yii2-resque dev-master
rkr/amazon-pay-sdk-php 2.x-dev
ortnit/logger dev-master
redweb-tn/codeigniter4 dev-master 4.0
resque/yii2-resque dev-master
rkr/amazon-pay-sdk-php 2.x-dev
sammet/gestion-colecciones dev-master
ortnit/logger dev-master
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.