ajaxy/logger

Ajaxy Logger

v1.0.5 2023-07-12 08:30 UTC

This package is auto-updated.

Last update: 2024-04-23 18:53:53 UTC


README

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