Class and method for generated log on several canals, with error management.
- Terminal (cli)
- On the browser (text/plain)
- On logfile
- Return by email on certain condition (if error, at end script or manually)
- In the table
batch_logs
on database
- PHP 7.4+
- PHP Extension: mbstring
- Pdo Mysql (optional)
Edit your composer.json (launch composer update
after edit):
{
"repositories": [
{ "type": "git", "url": "git@github.com:jgauthi/component_log.git" }
],
"require": {
"jgauthi/component_log": "3.*"
}
}
You can look at folder example.