h22k / logma
Basic logging library for small projects
Installs: 13
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/h22k/logma
Requires
- psr/log: ^3.0
Requires (Dev)
- friendsofphp/php-cs-fixer: dev-master
- mikey179/vfsstream: ^1.6.11
- phpstan/phpstan: 2.0.x-dev
- phpunit/phpunit: ^11.0.0
This package is auto-updated.
Last update: 2025-12-29 04:01:56 UTC
README
Logma
Logma is a simple logging tool. It's name coming from combination of Turkish word Lokma and log.
Install
composer require h22k/logma
Usage/Examples
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:{}
