PHP PSR-3 compatible loggers

2.2.1 2019-09-01 22:07 UTC

This package is auto-updated.

Last update: 2020-06-30 01:02:33 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! :)');

...