ozh/log

Simple PSR-3 logger to log messages into an array

v1.0 2017-08-17 12:10 UTC

This package is auto-updated.

Last update: 2024-12-09 20:34:36 UTC


README

A minimalist PSR-3 compliant logger, that logs into an array.

Latest Version on Packagist Software License Build Status Code Coverage Scrutinizer Code Quality

Install

Via Composer

$ composer require ozh/log

Usage

use \Ozh\Log\Logger;

require '../vendor/autoload.php';

$logger = new Logger();
$logger->debug('This is a debug message');

See examples/examples.php for more examples.

This library is fully tested on PHP 5.3 to 7.2 and HHVM.