This package is abandoned and no longer maintained. The author suggests using the monolog/monolog package instead.

PHP PSR-3 compatible loggers

2.2.1 2019-09-01 22:07 UTC

This package is auto-updated.

Last update: 2021-11-16 18:40:38 UTC


README

PHP PSR-3 compatible loggers

Latest Stable Version License

Requirements

Installation

Install directly via Composer:

$ composer require phyrexia/log

Basic Usage

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

use Phyrexia\Log\FileLogger;

//Instantiate a FileLogger logger
$logger = new FileLogger('/tmp/some_file.log');

//Log an error
$logger->error('An error occured! :(');

//Log an info
$logger->info('It works! :)');

...