/logger

PHP PSR-3 compatible loggers

Primary LanguagePHPMIT LicenseMIT

logger

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

...