Skip to content

mordilion/Dialog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dialog - A PSR-3 based logger interface for PHP

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.

About

A full configurable PSR-3 based logger

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages