PHP PSR-3 compatible loggers

2.2.0 2015-10-24 14:14 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! :)');

...