Logma is a simple logging tool. It's name coming from combination of Turkish word Lokma and log.
composer require h22k/logma
TODO: More examples will be added.
<?php
use H22k\Logma\Formatter\PlainTextFormatter;
use H22k\Logma\Logma;
use H22k\Logma\Resource\StreamResource;
use H22k\Logma\Source\StreamSource;
$logma = new Logma(
'logma',
);
$source = new StreamSource(
new StreamResource(__DIR__.'/storage/test.log'),
new PlainTextFormatter());
$logma->addSource($source);
$logma->info('first log');
// OUTPUT: [29/04/24 07:18:48] logmaTest.INFO | first log a:0:{}