antoinedly/logger

v1.0.1 2023-07-19 16:41 UTC

This package is auto-updated.

Last update: 2024-04-06 14:53:23 UTC


README

This really simple logger allow you to log in stream or in local arrays. It follows the PSR-3 standards.

Usage

<?php

use AntoineDly\Logger\Logger;

$logger = new Logger();
$logger->debug('test');

Requirements

  • AntoineDly\Logger ^1.0 works with PHP 8.2 or above.

Author

Antoine Delaunay - antoine.delaunay333@gmail.com - Twitter

License

AntoineDly\Logger is licensed under the MIT License - see the LICENSE file for details

Acknowledgements

This library is heavily inspired by Jordi Boggiano's Monolog library, although it is a lot lighter than it.

Contributing

If you want to contribute, make sure to run those 3 steps before submitting a PR :

  • Run static tests :
tools/phpstan/vendor/bin/phpstan analyse src tests --level=9
  • Run fixer :
tools/php-cs-fixer/vendor/bin/php-cs-fixer fix src
  • Run tests :
vendor/bin/phpunit tests