The Dialog library implements the PSR-3 interface and is fully configurable with INI, JSON, YAML, XML or PHP-Arrays. All Handlers, Processors and Formatters can be limit with conditions for DateTime, Level and Context-Content of a Record.
Install the latest version of Dialog with:
$ composer require mordilion/dialog
<?php
use Dialog\Logger;
use Dialog\Handler\StreamHandler;
{...}
$logger = new Logger();
$logger->addHandler((new StreamHandler())->setUrl('/path/to/your/file.log')));
{...}
$logger->debug('This is a debug message!');
$logger->warning('This is a warning message!');
Henning Huncke - mordilion@gmx.de - https://twitter.com/Mordilion
Dialog is licensed under the MIT License - see the LICENSE
file for details.
This library is inspired by Monolog library.