mordilion/dialog

Logging was never so easy

dev-master 2018-08-24 06:32 UTC

This package is auto-updated.

Last update: 2024-03-24 10:48:47 UTC


README

Total Downloads

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.