mordilion / dialog
Logging was never so easy
dev-master
2018-08-24 06:32 UTC
Requires
- php: >=5.6.0
- mordilion/configurable: 0.6.*
- psr/log: 1.0.2
This package is auto-updated.
Last update: 2024-10-24 11:56:41 UTC
README
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.
Installation
Install the latest version of Dialog with:
$ composer require mordilion/dialog
Basic usage
<?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!');
Documentation
About
Author
Henning Huncke - mordilion@gmx.de - https://twitter.com/Mordilion
License
Dialog is licensed under the MIT License - see the LICENSE
file for details.
Acknowledgements
This library is inspired by Monolog library.