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


PHP PSR-3 compatible loggers

Latest Stable Version License



Install directly via Composer:

$ composer require phyrexia/log

Basic Usage

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! :)');