Skip to content

n-for-all/logger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

logger

Ajaxy - PSR-3 Dynamic Logging for PHP

This library implements the PSR-3

Installation

Install the latest version with

$ composer require ajaxy/logger

Basic Usage

<?php

use Ajaxy\Logger\Logger;
use Ajaxy\Logger\Handler\Stream;

// create a log channel
$log = new Logger();
$log->pushHandler(new Stream('path/to/dir/', Logger::WARNING));

// dynamic logging
$log->debug('Foo');
$log->error('Bar');

// this will save the logging to anything.log
$log->{anything}('Bar');

About

Requirements

  • Ajaxy\Logger works with PHP 5.6 or above.

Submitting bugs and feature requests

Bugs and feature request are tracked on GitHub

Author

Naji Amer - icu090@gmail.com - http://ajaxy.org

License

Ajaxy\Logger is licensed under the MIT License - see the LICENSE file for details