This logger is based on the PSR-3 Logger Interface and enables simultaneous logging into multiple destinations, such as file, MongoDB, Slack, ...
You can find all information on using the Logger in the Wiki under: https://github.com/kairichter/logger/wiki
- PHP >= 7.1
- PSR-Log >= 1.0
- Monolog >= 1.22
- Symfony Var-Dumper >= 3.2
- Symfony Console >= 3.2
You can find the Logger adapted for other PHP versions in the following branches:
Through Composer, obviously:
composer require kairichter/logger
In vendor/kairichter/logger/examples/ you will find a detailed example of how to set up and use the Logger:
cd vendor/kairichter/logger/examples;
php quickstart.php
ls -lah
After the execution, a new file example-YYYY-MM-DD.log will be located in the new directory logs. This contains the log outputs of the file logger.