Skip to content
PHP PSR-3 compatible loggers
PHP
Branch: master
Clone or download
Latest commit 18e8af5 Sep 2, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src Dropping version, it is in composer.json Feb 10, 2016
.gitignore Moving code in src/ Oct 19, 2015
LICENSE
README.md Adding basic documentation Feb 25, 2016
composer.json Removing version field Sep 1, 2019

README.md

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

...
You can’t perform that action at this time.